fix(migrations->users->take-this.js): Fixed processUsers function by updating query._id to match only the user's _id instead of the entire user object (#15511)

This commit is contained in:
Muhammad Ubaid Nawaz
2025-10-01 23:20:43 +05:00
committed by GitHub
parent ef592cf35f
commit c430d2279c

View File

@@ -73,7 +73,7 @@ export default async function processUsers () {
break;
} else {
query._id = {
$gt: users[users.length - 1],
$gt: users[users.length - 1]?._id, // Here youre passing the whole user object instead of its _id
};
}