From ffcb6aacf51cd34a56a6f888cb9a678fb373b5f3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 28 Oct 2018 21:41:39 +0900 Subject: [PATCH] Update note-reaction.ts --- src/models/note-reaction.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/models/note-reaction.ts b/src/models/note-reaction.ts index cdc859b5a..0df9b921a 100644 --- a/src/models/note-reaction.ts +++ b/src/models/note-reaction.ts @@ -7,6 +7,8 @@ import Reaction from './note-reaction'; import { pack as packUser } from './user'; const NoteReaction = db.get('noteReactions'); +NoteReaction.createIndex('noteId'); +NoteReaction.createIndex('userId'); NoteReaction.createIndex(['userId', 'noteId'], { unique: true }); export default NoteReaction;