From bffdfea58af44c2faa543ed98cfb878b6d283935 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 18 Mar 2021 17:38:42 +0900 Subject: [PATCH] refactor --- src/services/note/reaction/create.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/note/reaction/create.ts b/src/services/note/reaction/create.ts index 8de9f53a1..30a17ad3e 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 {