From 5fb0560f0b936792ebe2a56e18c82dd59bd161ca Mon Sep 17 00:00:00 2001 From: Kalista Payne Date: Wed, 30 Oct 2024 11:13:23 -0500 Subject: [PATCH] fix(migration): updateOne --- migrations/archive/2024/20241030_habitoween_ladder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/archive/2024/20241030_habitoween_ladder.js b/migrations/archive/2024/20241030_habitoween_ladder.js index 894270d0a6..a0ed93988e 100644 --- a/migrations/archive/2024/20241030_habitoween_ladder.js +++ b/migrations/archive/2024/20241030_habitoween_ladder.js @@ -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 () {