Skip to content

Commit 31e41a9

Browse files
committed
#RI-4813 - fix tests
1 parent b515651 commit 31e41a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redisinsight/api/src/modules/database/repositories/local.database.repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export class LocalDatabaseRepository extends DatabaseRepository {
228228
private async checkUniqueness(database: Database): Promise<void> {
229229
// Do not create a connection if it triggered from cloud and have the same fields
230230
if (database.cloudDetails?.cloudId) {
231-
const entity = await this.encryptEntity(classToClass(DatabaseEntity, database));
231+
const entity = await this.encryptEntity(classToClass(DatabaseEntity, { ...database }));
232232

233233
if (entity.caCert) {
234234
entity.caCert = await (new ModelEncryptor(this.encryptionService, [

0 commit comments

Comments
 (0)