diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-17 00:34:49 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-17 00:34:49 +0900 |
| commit | fc27890f139c1ae0378b42cd912558272668723d (patch) | |
| tree | 033456b019ea5db45c96257ce4c93234f8b7ae4f /src/models | |
| parent | Merge branch 'develop' of https://github.com/syuilo/misskey into develop (diff) | |
| download | misskey-fc27890f139c1ae0378b42cd912558272668723d.tar.gz misskey-fc27890f139c1ae0378b42cd912558272668723d.tar.bz2 misskey-fc27890f139c1ae0378b42cd912558272668723d.zip | |
Refactor
Diffstat (limited to 'src/models')
| -rw-r--r-- | src/models/repositories/note.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models/repositories/note.ts b/src/models/repositories/note.ts index 7a48d24e13..98ed2bddc1 100644 --- a/src/models/repositories/note.ts +++ b/src/models/repositories/note.ts @@ -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)], |