From 22d0d118959229ae59f81d65185a697f74c1e8a8 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 cdc859b5a7..0df9b921a5 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;