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;