mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-16 23:17:33 -07:00
Update note-reaction.ts
This commit is contained in:
parent
cbc27be378
commit
ffcb6aacf5
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,8 @@ import Reaction from './note-reaction';
|
||||||
import { pack as packUser } from './user';
|
import { pack as packUser } from './user';
|
||||||
|
|
||||||
const NoteReaction = db.get<INoteReaction>('noteReactions');
|
const NoteReaction = db.get<INoteReaction>('noteReactions');
|
||||||
|
NoteReaction.createIndex('noteId');
|
||||||
|
NoteReaction.createIndex('userId');
|
||||||
NoteReaction.createIndex(['userId', 'noteId'], { unique: true });
|
NoteReaction.createIndex(['userId', 'noteId'], { unique: true });
|
||||||
export default NoteReaction;
|
export default NoteReaction;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue