Skip to content

Commit

Permalink
fix(logs): fixes wrong format of returned ids for activity (refs #448)…
Browse files Browse the repository at this point in the history
… WIP apply the same algorithm than people to include deleted activities
  • Loading branch information
naholyr committed Sep 26, 2017
1 parent 632fd54 commit 00067cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/routes/editLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ const findActivityItemIds = (query, req) => {
: {range:false}
return req.userListViewableActivities(options).then(mongoquery => {
if (query.startDate || query.endDate)
return mongoquery.query.getQuery()['organizations.organization']
return mongoquery.query.getQuery()['organizations.organization'].$in
else
return mongoquery.query.then(activities => {
return {$in: activities.map(a => a._id)}
return activities.map(a => a._id)
})
})
}
Expand Down

0 comments on commit 00067cb

Please sign in to comment.