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