diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-05-06 18:19:17 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-05-06 18:19:17 +0900 |
| commit | 97ce939a737d7a4cc61e138ec092682e21e14c7c (patch) | |
| tree | 4d78552045e61691bde51fb553348678cd0f6399 /migration | |
| parent | アイコンのレンダリングを改善 (diff) | |
| download | sharkey-97ce939a737d7a4cc61e138ec092682e21e14c7c.tar.gz sharkey-97ce939a737d7a4cc61e138ec092682e21e14c7c.tar.bz2 sharkey-97ce939a737d7a4cc61e138ec092682e21e14c7c.zip | |
Fix
Diffstat (limited to 'migration')
| -rw-r--r-- | migration/2.4.0.js | 2 |
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 }, { |