diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-17 14:32:59 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-17 14:32:59 +0900 |
| commit | 0ede390fefb4aae460deccc09755af85e5af6002 (patch) | |
| tree | a3d86468bd6ef53e206382a2812eb74e2039ccc5 /src/services/note/polls | |
| parent | Fix #4721 Fix #4722 (diff) | |
| download | sharkey-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.ts | 2 |
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) { |