Skip to content
Snippets Groups Projects
Unverified Commit fc27890f authored by syuilo's avatar syuilo
Browse files

Refactor

parent a5839397
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ export class NoteRepository extends Repository<Note> {
const host = note.userHost;
async function populatePoll() {
const poll = await Polls.findOne({ noteId: note.id }).then(ensure);
const poll = await Polls.findOne(note.id).then(ensure);
const choices = poll.choices.map(c => ({
text: c,
votes: poll.votes[poll.choices.indexOf(c)],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment