Skip to content

Commit 3cc9e58

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,12 @@ export class LocalDatabaseRepository extends DatabaseRepository {
104104
public async create(database: Database): Promise<Database> {
105105
await this.checkUniqueness(database);
106106

107+
const entity = classToClass(DatabaseEntity, await this.populateCertificates(database));
107108
return classToClass(
108109
Database,
109110
await this.decryptEntity(
110111
await this.repository.save(
111-
classToClass(DatabaseEntity, await this.populateCertificates(database)),
112+
await this.encryptEntity(entity),
112113
),
113114
),
114115
);

0 commit comments

Comments
 (0)