From c430d2279c9d48d1b6a6317db885bd6ca358149f Mon Sep 17 00:00:00 2001 From: Muhammad Ubaid Nawaz <101632017+MuhammadUbaid123@users.noreply.github.com> Date: Wed, 1 Oct 2025 23:20:43 +0500 Subject: [PATCH] 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) --- migrations/users/take-this.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/users/take-this.js b/migrations/users/take-this.js index 5c33ad12ee..e2d30ccb72 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], + $gt: users[users.length - 1]?._id, // Here you’re passing the whole user object instead of its _id }; }