summaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-05-06 18:19:17 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-05-06 18:19:17 +0900
commit97ce939a737d7a4cc61e138ec092682e21e14c7c (patch)
tree4d78552045e61691bde51fb553348678cd0f6399 /migration
parentアイコンのレンダリングを改善 (diff)
downloadsharkey-97ce939a737d7a4cc61e138ec092682e21e14c7c.tar.gz
sharkey-97ce939a737d7a4cc61e138ec092682e21e14c7c.tar.bz2
sharkey-97ce939a737d7a4cc61e138ec092682e21e14c7c.zip
Fix
Diffstat (limited to 'migration')
-rw-r--r--migration/2.4.0.js2
1 files changed, 2 insertions, 0 deletions
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
}, {