diff --git a/migration/2.4.0.js b/migration/2.4.0.js index d324d4471e..e9584a1dfc 100644 --- a/migration/2.4.0.js +++ b/migration/2.4.0.js @@ -44,6 +44,8 @@ async function main() { } } + if (Object.keys(set).length === 0) return res([i, user]); + User.update({ _id: user._id }, {