mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-10-26 02:32:26 +01:00
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:
committed by
GitHub
parent
ef592cf35f
commit
c430d2279c
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user