Skip to content

Commit 0bad8e8

Browse files
author
Artem
committed
avoid encryption error shown to user
1 parent d8463c3 commit 0bad8e8

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)