mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 09:23:48 +01:00
Better index
This commit is contained in:
parent
544107d2a6
commit
5fb2a358ad
@ -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