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
1 changed files with 1 additions and 3 deletions

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