mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-25 04:43:09 +02:00
Refactor
This commit is contained in:
parent
d46eca4c87
commit
275e1c8de9
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue