summaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-11-02 12:49:18 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-11-02 12:49:18 +0900
commitddc3c5ba6825786716f2fe2c0f591ae1abebacf9 (patch)
tree16f78f93bea6952cd7f2f43078c49bbf3abace67 /src/models
parentResolve #2623 (diff)
downloadsharkey-ddc3c5ba6825786716f2fe2c0f591ae1abebacf9.tar.gz
sharkey-ddc3c5ba6825786716f2fe2c0f591ae1abebacf9.tar.bz2
sharkey-ddc3c5ba6825786716f2fe2c0f591ae1abebacf9.zip
Better index
Diffstat (limited to 'src/models')
-rw-r--r--src/models/poll-vote.ts2
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 {