Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-holovin committed Nov 9, 2015
1 parent 7cfd709 commit 944bad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/custom/icapi/server/controllers/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 944bad0

Please sign in to comment.