From 4e874080178a75ba2dd3e23a4b9dd35597605059 Mon Sep 17 00:00:00 2001 From: Lautaro Dragan Date: Wed, 25 Sep 2019 12:24:33 -0300 Subject: [PATCH] fix: encryption migration script typo (#1004) --- src/scripts/migrate-encryption.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/migrate-encryption.ts b/src/scripts/migrate-encryption.ts index bed3ec70e..fa930f840 100644 --- a/src/scripts/migrate-encryption.ts +++ b/src/scripts/migrate-encryption.ts @@ -103,7 +103,7 @@ async function migratePrivateKeys() { const reencryptedApiTokens = apiTokens.map(encryptApiToken) const reencryptedTestApiTokens = testApiTokens.map(encryptApiToken) await accountCollection.updateOne({ _id }, { $set: { - privateKey: encryptedPrivateKey, + privateKey: reencryptedPrivateKey, apiTokens: reencryptedApiTokens, testApiTokens: reencryptedTestApiTokens, }})