From 97ce939a737d7a4cc61e138ec092682e21e14c7c Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 6 May 2018 18:19:17 +0900 Subject: [PATCH] Fix --- migration/2.4.0.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migration/2.4.0.js b/migration/2.4.0.js index d324d4471..e9584a1df 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 }, {