Skip to content

Commit

Permalink
Date filter to use in instead of or
Browse files Browse the repository at this point in the history
  • Loading branch information
villevuor committed Jul 21, 2016
1 parent 3f2b10a commit 84f1524
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/common/models/participant.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,7 @@ export default function (Participant) {
}

function constructInternalDateFilter(participantIds) {
const or = [];
participantIds.map( id => {
or.push({ participantId: id });
});
return { or: or };
return { participantId: { inq: participantIds } };
}
}

Expand Down

0 comments on commit 84f1524

Please sign in to comment.