Skip to content

Commit

Permalink
fix(logs): fixes 500 when itemID option is set
Browse files Browse the repository at this point in the history
  • Loading branch information
naholyr committed Sep 27, 2017
1 parent 1e414f8 commit 5689536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routes/editLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ const findItemIds = (query, model, req) => () => {
//prepare Item filter organisation scope mongoQuery
//focusing on one item, scope has been checked earlier
if (query.itemID)
return ObjectId(query.itemID)
return [ObjectId(query.itemID)]
// scope doesn't apply on organizations
if (model === 'Organization')
return undefined
Expand Down

0 comments on commit 5689536

Please sign in to comment.