1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-27 14:28:53 +09:00

Fix keypair assignment in a migration script

This commit is contained in:
Akihiko Odaki 2018-03-27 12:18:22 +09:00
parent 396bb5821e
commit 629e19603e

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