mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-24 11:50:58 -04:00
Put limit on things to be sorted
We might have to alter the queries a bit if we aren't happy with the results
This commit is contained in:
parent
f361674fb4
commit
2e9e9ee85c
1 changed files with 2 additions and 0 deletions
|
@ -154,6 +154,7 @@ module.exports.getTwoGames = (req, res) ->
|
|||
.aggregate()
|
||||
.match(queryParams)
|
||||
.project(selection)
|
||||
.limit(5000)
|
||||
.sort({'submitDate': -1})
|
||||
.skip(humanSkipCount)
|
||||
.limit(1)
|
||||
|
@ -168,6 +169,7 @@ module.exports.getTwoGames = (req, res) ->
|
|||
.aggregate()
|
||||
.match(queryParams)
|
||||
.project(selection)
|
||||
.limit(5000)
|
||||
.sort({'submitDate': -1})
|
||||
.skip(ogresSkipCount)
|
||||
.limit(1)
|
||||
|
|
Loading…
Add table
Reference in a new issue