This commit is contained in:
syuilo 2019-04-13 18:17:27 +09:00
parent d46eca4c87
commit 275e1c8de9
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -8,7 +8,7 @@ import { genId } from '../../../misc/gen-id';
import { createNotification } from '../../create-notification'; import { createNotification } from '../../create-notification';
export default async function(user: User, note: Note, choice: number) { export default async function(user: User, note: Note, choice: number) {
const poll = await Polls.findOne({ noteId: note.id }); const poll = await Polls.findOne(note.id);
if (poll == null) throw 'poll not found'; if (poll == null) throw 'poll not found';