mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
parent
be1ddbae41
commit
88d5df2f41
1 changed files with 1 additions and 0 deletions
|
@ -4,6 +4,7 @@ import db from '../db/mongodb';
|
|||
const PollVote = db.get<IPollVote>('pollVotes');
|
||||
PollVote.createIndex('userId');
|
||||
PollVote.createIndex('noteId');
|
||||
PollVote.createIndex(['userId', 'noteId'], { unique: true });
|
||||
export default PollVote;
|
||||
|
||||
export interface IPollVote {
|
||||
|
|
Loading…
Reference in a new issue