1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-10-31 23:31:48 +09:00

Merge pull request #1311 from akihikodaki/key

Fix keypair assignment in a migration script
This commit is contained in:
syuilo 2018-03-27 12:20:37 +09:00 committed by GitHub
commit 792b657a82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 () {