1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-05 02:08:56 +09:00
This commit is contained in:
syuilo 2019-04-17 00:34:49 +09:00
parent a583939767
commit fc27890f13
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -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)],