Skip to content

Commit

Permalink
refacto bug corrected #436
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgirard committed Sep 7, 2017
1 parent eabcd9c commit c183d32
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 @@ -103,7 +103,7 @@ function getEditLog(req, res){

//focusing on one item, scope has been checked earlier
if (query.itemID)
return next(null, {whoIds, itemIds:new Array(ObjectId(query.itemID))})
return next(null, {whoIds, itemIds: ObjectId(query.itemID)})
// scope doesn't apply on organizations
if (model === 'organizations')
return next(null, {whoIds})
Expand Down

0 comments on commit c183d32

Please sign in to comment.