diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-03-25 16:50:21 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-03-25 16:50:21 +0900 |
| commit | 7be48285e2d348f30a12a002ad4b73572a261f24 (patch) | |
| tree | c1aff50fdb85179c85be63be1e1f86c20405bba8 /src/api | |
| parent | #321 (diff) | |
| download | sharkey-7be48285e2d348f30a12a002ad4b73572a261f24.tar.gz sharkey-7be48285e2d348f30a12a002ad4b73572a261f24.tar.bz2 sharkey-7be48285e2d348f30a12a002ad4b73572a261f24.zip | |
[API] 自分の投票はおすすめしないように
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/endpoints/posts/polls/recommendation.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/api/endpoints/posts/polls/recommendation.ts b/src/api/endpoints/posts/polls/recommendation.ts index d3fccf1233..9c92d6cac4 100644 --- a/src/api/endpoints/posts/polls/recommendation.ts +++ b/src/api/endpoints/posts/polls/recommendation.ts @@ -39,6 +39,9 @@ module.exports = (params, user) => new Promise(async (res, rej) => { _id: { $nin: nin }, + user_id: { + $ne: user._id + }, poll: { $exists: true, $ne: null |