Better index
This commit is contained in:
parent
a7e6b766be
commit
ddc3c5ba68
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user