mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-07 19:35:32 +00:00
fix(hall): let's try $gt instead of $ne:null, the query is still
slow
This commit is contained in:
parent
87d196b038
commit
a72b013131
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ api.getHeroes = function(req,res,next) {
|
|||
api.getPatrons = function(req,res,next){
|
||||
var page = req.query.page || 0,
|
||||
perPage = 50;
|
||||
User.find({'backer.tier':{$ne:null}})
|
||||
User.find({'backer.tier':{$gt:0}})
|
||||
.select('contributor backer profile.name')
|
||||
.sort('-backer.tier')
|
||||
.skip(page*perPage)
|
||||
|
|
|
|||
Loading…
Reference in a new issue