fix lint
This commit is contained in:
@@ -28,7 +28,7 @@ export default async function(user: User, note: Note, choice: number) {
|
||||
// if already voted
|
||||
const exist = await PollVotes.find({
|
||||
noteId: note.id,
|
||||
userId: user.id
|
||||
userId: user.id,
|
||||
});
|
||||
|
||||
if (poll.multiple) {
|
||||
@@ -45,7 +45,7 @@ export default async function(user: User, note: Note, choice: number) {
|
||||
createdAt: new Date(),
|
||||
noteId: note.id,
|
||||
userId: user.id,
|
||||
choice: choice
|
||||
choice: choice,
|
||||
});
|
||||
|
||||
// Increment votes count
|
||||
@@ -54,14 +54,14 @@ export default async function(user: User, note: Note, choice: number) {
|
||||
|
||||
publishNoteStream(note.id, 'pollVoted', {
|
||||
choice: choice,
|
||||
userId: user.id
|
||||
userId: user.id,
|
||||
});
|
||||
|
||||
// Notify
|
||||
createNotification(note.userId, 'pollVote', {
|
||||
notifierId: user.id,
|
||||
noteId: note.id,
|
||||
choice: choice
|
||||
choice: choice,
|
||||
});
|
||||
|
||||
// Fetch watchers
|
||||
@@ -74,7 +74,7 @@ export default async function(user: User, note: Note, choice: number) {
|
||||
createNotification(watcher.userId, 'pollVote', {
|
||||
notifierId: user.id,
|
||||
noteId: note.id,
|
||||
choice: choice
|
||||
choice: choice,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user