diff --git a/migrations/users/take-this.js b/migrations/users/take-this.js index e2d30ccb72..43ae412d8a 100644 --- a/migrations/users/take-this.js +++ b/migrations/users/take-this.js @@ -73,7 +73,7 @@ export default async function processUsers () { break; } else { query._id = { - $gt: users[users.length - 1]?._id, // Here you’re passing the whole user object instead of its _id + $gt: users[users.length - 1]._id, // Here you’re passing the whole user object instead of its _id }; }