mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-27 22:38:34 +09:00
Fix keypair assignment in a migration script
This commit is contained in:
parent
396bb5821e
commit
629e19603e
@ -6,9 +6,7 @@ const updates = [];
|
|||||||
User.find({}).each(function(user) {
|
User.find({}).each(function(user) {
|
||||||
updates.push(User.update({ _id: user._id }, {
|
updates.push(User.update({ _id: user._id }, {
|
||||||
$set: {
|
$set: {
|
||||||
account: {
|
'account.keypair': generate(),
|
||||||
keypair: generate(),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user