mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-19 12:18:51 +00:00
fix(migration): updateOne
This commit is contained in:
parent
88b616e206
commit
5fb0560f0b
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ async function updateUser (user) {
|
|||
}
|
||||
|
||||
if (count % progressCount === 0) console.warn(`${count} ${user._id}`);
|
||||
return await User.update({_id: user._id}, {$inc: inc, $push: push, $set: set}).exec();
|
||||
return await User.updateOne({_id: user._id}, {$inc: inc, $push: push, $set: set}).exec();
|
||||
}
|
||||
|
||||
export default async function processUsers () {
|
||||
|
|
|
|||
Loading…
Reference in a new issue