Better index

This commit is contained in:
syuilo 2018-11-02 12:49:18 +09:00
parent 544107d2a6
commit 5fb2a358ad

View File

@ -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 {