fix mongo sort argument (#4021)

GitOrigin-RevId: 639f31d5046b4df5f9f75f688cf73f3366232c31
This commit is contained in:
Timothée Alby 2021-05-13 12:25:29 +02:00 committed by Copybot
parent 0360d01aeb
commit a82ccf9aec

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) => {