fix mongo sort argument (#4021)

GitOrigin-RevId: 639f31d5046b4df5f9f75f688cf73f3366232c31
This commit is contained in:
Timothée Alby
2021-05-14 02:09:55 +00:00
committed by Copybot
parent 0360d01aeb
commit a82ccf9aec
+1 -1
View File
@@ -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) => {