Skip to content

Commit

Permalink
sorting edits antichronos #429
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgirard committed Aug 30, 2017
1 parent 2a0f509 commit da56f78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/routes/editLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ function getEditLog(req, res){
// "creator.isariAuthorizedCenters":1,

// }}
{'$sort':{date:-1}},
// skip and limit
{'$skip':query.skip ? +query.skip : 0},
{'$limit':query.limit ? +query.limit : 100}
Expand Down

0 comments on commit da56f78

Please sign in to comment.