Skip to content

Commit

Permalink
fix: encryption migration script (#1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
lautarodragan authored Sep 24, 2019
1 parent da178d7 commit c9d6a3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/migrate-encryption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ async function migratePrivateKeys() {
const decryptedAccounts = await Promise.all(accounts.map(async account => {
try {
const privateKey = await decryptBackwardsCompatible(account.privateKey)
const apiTokens = await decryptApiTokens(account.apiTokens)
const testApiTokens = await decryptApiTokens(account.testApiTokens)
const apiTokens = await decryptApiTokens(account.apiTokens || [])
const testApiTokens = await decryptApiTokens(account.testApiTokens || [])
return right({
_id: account._id,
email: account.email,
Expand Down

0 comments on commit c9d6a3d

Please sign in to comment.