Skip to content

Commit

Permalink
Merge pull request #66 from linnovate/fix-projects-by-discussion
Browse files Browse the repository at this point in the history
Fix condition
  • Loading branch information
roman-holovin committed Nov 9, 2015
2 parents 81a9440 + 944bad0 commit 77e27f2
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 77e27f2

Please sign in to comment.