Skip to content

Commit

Permalink
Fixed GET_MANY handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthegiantlion committed Mar 27, 2017
1 parent 30b1501 commit 6c27bba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/restClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export default client => {

switch (type) {
case GET_MANY:
let ids = params.ids || [];
query = {'id': { '[$in]': ids }};
query['$limit'] = ids.length;
return service.find({ query });
case GET_MANY_REFERENCE:
case GET_LIST:
const {page, perPage} = params.pagination || {};
Expand Down

0 comments on commit 6c27bba

Please sign in to comment.