mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 15:13:09 +02:00
Merge pull request #1311 from akihikodaki/key
Fix keypair assignment in a migration script
This commit is contained in:
commit
792b657a82
1 changed files with 1 additions and 3 deletions
|
@ -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 a new issue