mirror of
https://github.com/hotomoe/hotomoe
synced 2024-11-29 23:38:13 +09:00
parent
2df2cf0983
commit
b44227948d
@ -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 New Issue
Block a user