From 7be48285e2d348f30a12a002ad4b73572a261f24 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 25 Mar 2017 16:50:21 +0900 Subject: [PATCH] =?UTF-8?q?[API]=20=E8=87=AA=E5=88=86=E3=81=AE=E6=8A=95?= =?UTF-8?q?=E7=A5=A8=E3=81=AF=E3=81=8A=E3=81=99=E3=81=99=E3=82=81=E3=81=97?= =?UTF-8?q?=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB?= 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(+) diff --git a/src/api/endpoints/posts/polls/recommendation.ts b/src/api/endpoints/posts/polls/recommendation.ts index d3fccf123..9c92d6cac 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