Skip to content

Commit

Permalink
Merge pull request #4656 from Countly/SER-812
Browse files Browse the repository at this point in the history
[SER-812] cursor timeout issue
  • Loading branch information
Cookiezaurs authored Oct 30, 2023
2 parents f7bc5f6 + 35bfd66 commit 99f7ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/scripts/fix-data/recheck_merges.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Promise.all([pluginManager.dbConnection("countly"), pluginManager.dbConnection("
await processUser(user.merged_uid, user.uid, collections, app);
}
//if cursor is closed, recreate it and skip processed users
if (!usersCursor) {
if (usersCursor.isClosed()) {
usersCursor = usersCollection.find({merges: {$gt: 0}}, {_id: 1, uid: 1, merged_uid: 1}).skip(processedUsersCount);
}
}
Expand Down

0 comments on commit 99f7ca8

Please sign in to comment.