Skip to content

Commit

Permalink
fix(logs): fixes activities editLogs giving undefined whoIdsItemIds (f…
Browse files Browse the repository at this point in the history
…ixes #460)
  • Loading branch information
naholyr committed Sep 25, 2017
1 parent 37a00de commit 6be1e27
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 @@ -145,7 +145,7 @@ function getEditLog(req, res){
if (query.startDate || query.endDate)
return {whoIds, itemIds: mongoquery.query.getQuery()['organizations.organization']}
else
mongoquery.query.then(activities => {
return mongoquery.query.then(activities => {
return {whoIds, itemIds: {$in: activities.map(a => a._id)}}
})
})
Expand Down

0 comments on commit 6be1e27

Please sign in to comment.