Skip to content

Commit 5fb0560

Browse files
committed
fix(migration): updateOne
1 parent 88b616e commit 5fb0560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

migrations/archive/2024/20241030_habitoween_ladder.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ async function updateUser (user) {
138138
}
139139

140140
if (count % progressCount === 0) console.warn(`${count} ${user._id}`);
141-
return await User.update({_id: user._id}, {$inc: inc, $push: push, $set: set}).exec();
141+
return await User.updateOne({_id: user._id}, {$inc: inc, $push: push, $set: set}).exec();
142142
}
143143

144144
export default async function processUsers () {

0 commit comments

Comments
 (0)