summaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-04-17 00:34:49 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-04-17 00:34:49 +0900
commitfc27890f139c1ae0378b42cd912558272668723d (patch)
tree033456b019ea5db45c96257ce4c93234f8b7ae4f /src/models
parentMerge branch 'develop' of https://github.com/syuilo/misskey into develop (diff)
downloadmisskey-fc27890f139c1ae0378b42cd912558272668723d.tar.gz
misskey-fc27890f139c1ae0378b42cd912558272668723d.tar.bz2
misskey-fc27890f139c1ae0378b42cd912558272668723d.zip
Refactor
Diffstat (limited to 'src/models')
-rw-r--r--src/models/repositories/note.ts2
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)],