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, }})