Skip to content

Commit ade3d75

Browse files
author
arthosofteq
authored
Merge pull request #2448 from RedisInsight/be/bugfix/RI-4839-decryption-issue
avoid encryption error shown to user
2 parents 2b97347 + 0bad8e8 commit ade3d75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

redisinsight/api/src/modules/cloud/capi-key/repository/local.cloud-capi-key.repository.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class LocalCloudCapiKeyRepository extends CloudCapiKeyRepository {
5959
return null;
6060
}
6161

62-
return classToClass(CloudCapiKey, await this.modelEncryptor.decryptEntity(entity));
62+
return classToClass(CloudCapiKey, await this.modelEncryptor.decryptEntity(entity, true));
6363
}
6464

6565
/**
@@ -75,6 +75,7 @@ export class LocalCloudCapiKeyRepository extends CloudCapiKeyRepository {
7575
await this.repository.save(
7676
await this.modelEncryptor.encryptEntity(entity),
7777
),
78+
true,
7879
),
7980
);
8081
} catch (e) {

0 commit comments

Comments
 (0)