diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-10-28 21:41:39 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-28 21:41:39 +0900 |
| commit | 22d0d118959229ae59f81d65185a697f74c1e8a8 (patch) | |
| tree | ac8f99e552bdd79c37a775cca8b4e2f6272b80c8 /src | |
| parent | Bump eslint from 5.7.0 to 5.8.0 (#3030) (diff) | |
| download | sharkey-22d0d118959229ae59f81d65185a697f74c1e8a8.tar.gz sharkey-22d0d118959229ae59f81d65185a697f74c1e8a8.tar.bz2 sharkey-22d0d118959229ae59f81d65185a697f74c1e8a8.zip | |
Update note-reaction.ts
Diffstat (limited to 'src')
| -rw-r--r-- | src/models/note-reaction.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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<INoteReaction>('noteReactions'); +NoteReaction.createIndex('noteId'); +NoteReaction.createIndex('userId'); NoteReaction.createIndex(['userId', 'noteId'], { unique: true }); export default NoteReaction; |