Skip to content
Snippets Groups Projects
Unverified Commit ddc3c5ba authored by syuilo's avatar syuilo
Browse files

Better index

parent a7e6b766
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment