From 944bad05b7a34db6dd6a8fd80c25833b0b35f761 Mon Sep 17 00:00:00 2001 From: Roman Golovin Date: Mon, 9 Nov 2015 15:49:29 +0200 Subject: [PATCH] Fix condition --- packages/custom/icapi/server/controllers/project.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/custom/icapi/server/controllers/project.js b/packages/custom/icapi/server/controllers/project.js index af78018..95c3114 100644 --- a/packages/custom/icapi/server/controllers/project.js +++ b/packages/custom/icapi/server/controllers/project.js @@ -119,7 +119,7 @@ exports.getByDiscussion = function (req, res, next) { var entityQuery = { discussions: req.params.id, - project: { $and: [{ $ne: null }, { $exists: 'project' }] } + project: { $ne: null, $exists: true } }; var starredOnly = false;