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;