diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-18 17:38:42 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-18 17:38:42 +0900 |
| commit | bffdfea58af44c2faa543ed98cfb878b6d283935 (patch) | |
| tree | 57b7a50732a48fe6ecd91499168ea481b098da56 /src | |
| parent | perf: reduce query (diff) | |
| download | sharkey-bffdfea58af44c2faa543ed98cfb878b6d283935.tar.gz sharkey-bffdfea58af44c2faa543ed98cfb878b6d283935.tar.bz2 sharkey-bffdfea58af44c2faa543ed98cfb878b6d283935.zip | |
refactor
Diffstat (limited to 'src')
| -rw-r--r-- | src/services/note/reaction/create.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/services/note/reaction/create.ts b/src/services/note/reaction/create.ts index 8de9f53a17..30a17ad3e9 100644 --- a/src/services/note/reaction/create.ts +++ b/src/services/note/reaction/create.ts @@ -12,11 +12,12 @@ import { genId } from '../../../misc/gen-id'; import { createNotification } from '../../create-notification'; import deleteReaction from './delete'; import { isDuplicateKeyValueError } from '../../../misc/is-duplicate-key-value-error'; +import { NoteReaction } from '../../../models/entities/note-reaction'; export default async (user: User, note: Note, reaction?: string) => { reaction = await toDbReaction(reaction, user.host); - let record; + let record: NoteReaction; // Create reaction try { |