mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 03:47:40 -07:00
Better index
This commit is contained in:
parent
544107d2a6
commit
5fb2a358ad
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue