Skip to content
Snippets Groups Projects
Unverified Commit 22d0d118 authored by syuilo's avatar syuilo Committed by GitHub
Browse files

Update note-reaction.ts

parent 80d0c0cf
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,8 @@ import Reaction from './note-reaction';
import { pack as packUser } from './user';
const NoteReaction = db.get<INoteReaction>('noteReactions');
NoteReaction.createIndex('noteId');
NoteReaction.createIndex('userId');
NoteReaction.createIndex(['userId', 'noteId'], { unique: true });
export default NoteReaction;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment