fix mongo sort argument (#4021)
GitOrigin-RevId: 639f31d5046b4df5f9f75f688cf73f3366232c31
This commit is contained in:
@@ -85,7 +85,7 @@ const loopForUsers = (skip, callback) => {
|
||||
db.users
|
||||
.find({})
|
||||
.project({ features: 1, lastLoggedIn: 1 })
|
||||
.sort('_id')
|
||||
.sort({ _id: 1 })
|
||||
.skip(skip)
|
||||
.limit(FETCH_LIMIT)
|
||||
.toArray((error, users) => {
|
||||
|
||||
Reference in New Issue
Block a user