diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-03-27 12:20:37 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-27 12:20:37 +0900 |
| commit | 792b657a824df87c1479931b81844319e3465569 (patch) | |
| tree | 59fc32601e2a768f4cbda87b7068c5f10010ac65 | |
| parent | Merge pull request #1309 from akihikodaki/key (diff) | |
| parent | Fix keypair assignment in a migration script (diff) | |
| download | misskey-792b657a824df87c1479931b81844319e3465569.tar.gz misskey-792b657a824df87c1479931b81844319e3465569.tar.bz2 misskey-792b657a824df87c1479931b81844319e3465569.zip | |
Merge pull request #1311 from akihikodaki/key
Fix keypair assignment in a migration script
| -rw-r--r-- | tools/migration/node.1522066477.user-account-keypair.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/migration/node.1522066477.user-account-keypair.js b/tools/migration/node.1522066477.user-account-keypair.js index 4a968aae28..effea137c6 100644 --- a/tools/migration/node.1522066477.user-account-keypair.js +++ b/tools/migration/node.1522066477.user-account-keypair.js @@ -6,9 +6,7 @@ const updates = []; User.find({}).each(function(user) { updates.push(User.update({ _id: user._id }, { $set: { - account: { - keypair: generate(), - } + 'account.keypair': generate(), } })); }).then(function () { |