From 7be48285e2d348f30a12a002ad4b73572a261f24 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 25 Mar 2017 16:50:21 +0900 Subject: [API] 自分の投票はおすすめしないように MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/endpoints/posts/polls/recommendation.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/api/endpoints') 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 -- cgit v1.2.3-freya