From d394a3d14a6343941ded086118409c2195d09aa4 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Thu, 11 Dec 2025 14:06:55 +0100 Subject: [PATCH] Update function signature --- libs/common/src/platform/models/domain/domain-base.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/common/src/platform/models/domain/domain-base.ts b/libs/common/src/platform/models/domain/domain-base.ts index 04c7484c81e..adb761f9161 100644 --- a/libs/common/src/platform/models/domain/domain-base.ts +++ b/libs/common/src/platform/models/domain/domain-base.ts @@ -76,16 +76,17 @@ export default class Domain { viewModel: ViewEncryptableKeys, props: EncryptableKeys[], orgId: null, - key: SymmetricCryptoKey | null, + key: SymmetricCryptoKey, objectContext: string = "No Domain Context", ): Promise { const encryptService = Utils.getContainerService().getEncryptService(); for (const prop of props) { if (domain[prop] == null) { + viewModel[prop] = null; continue; } try { - viewModel[prop] = await encryptService.decryptString(domain[prop]!, key!); + viewModel[prop] = await encryptService.decryptString(domain[prop]!, key); } catch (e) { throw new Error( `Failed to decrypt property '${String(