diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-02 12:49:18 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-02 12:49:18 +0900 |
| commit | ddc3c5ba6825786716f2fe2c0f591ae1abebacf9 (patch) | |
| tree | 16f78f93bea6952cd7f2f43078c49bbf3abace67 /src/models | |
| parent | Resolve #2623 (diff) | |
| download | sharkey-ddc3c5ba6825786716f2fe2c0f591ae1abebacf9.tar.gz sharkey-ddc3c5ba6825786716f2fe2c0f591ae1abebacf9.tar.bz2 sharkey-ddc3c5ba6825786716f2fe2c0f591ae1abebacf9.zip | |
Better index
Diffstat (limited to 'src/models')
| -rw-r--r-- | src/models/poll-vote.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/models/poll-vote.ts b/src/models/poll-vote.ts index 4d33b100e7..4390e000c3 100644 --- a/src/models/poll-vote.ts +++ b/src/models/poll-vote.ts @@ -2,6 +2,8 @@ import * as mongo from 'mongodb'; import db from '../db/mongodb'; const PollVote = db.get<IPollVote>('pollVotes'); +PollVote.createIndex('userId'); +PollVote.createIndex('noteId'); export default PollVote; export interface IPollVote { |