summaryrefslogtreecommitdiff
path: root/src/services/note/polls
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-04-17 14:32:59 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-04-17 14:32:59 +0900
commit0ede390fefb4aae460deccc09755af85e5af6002 (patch)
treea3d86468bd6ef53e206382a2812eb74e2039ccc5 /src/services/note/polls
parentFix #4721 Fix #4722 (diff)
downloadsharkey-0ede390fefb4aae460deccc09755af85e5af6002.tar.gz
sharkey-0ede390fefb4aae460deccc09755af85e5af6002.tar.bz2
sharkey-0ede390fefb4aae460deccc09755af85e5af6002.zip
Refactor
Diffstat (limited to 'src/services/note/polls')
-rw-r--r--src/services/note/polls/vote.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/note/polls/vote.ts b/src/services/note/polls/vote.ts
index c6876484f5..aee52ba10d 100644
--- a/src/services/note/polls/vote.ts
+++ b/src/services/note/polls/vote.ts
@@ -67,7 +67,7 @@ export default async function(user: User, note: Note, choice: number) {
}
});
- const profile = await UserProfiles.findOne({ userId: user.id });
+ const profile = await UserProfiles.findOne(user.id);
// ローカルユーザーが投票した場合この投稿をWatchする
if (Users.isLocalUser(user) && profile!.autoWatch) {