From eb2e612c500d7d129d399bffdc5d89e41a3eb11b Mon Sep 17 00:00:00 2001 From: Kiran Kharade Date: Tue, 9 May 2023 18:46:48 +0530 Subject: [PATCH] Config-changes --- service.config.json | 4 ++-- service.config.local.json | 2 +- src/domain.types/engine/engine.types.ts | 1 + src/modules/engine.execution/schema.engine.ts | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/service.config.json b/service.config.json index cc07998..de6b73a 100644 --- a/service.config.json +++ b/service.config.json @@ -1,5 +1,5 @@ { - "SystemIdentifier": "REAN Careplan Service", + "SystemIdentifier": "Awards Service", "Auth" : { "Authentication": "Custom", "Authorization": "Custom" @@ -25,6 +25,6 @@ }, "MaxUploadFileSize": 104857600, "JwtExpiresIn": 2592000, - "Logger" : "Winston", + "Logger" : "Custom", "UseHTTPLogging" : true } diff --git a/service.config.local.json b/service.config.local.json index 98abc43..82ca812 100644 --- a/service.config.local.json +++ b/service.config.local.json @@ -1,5 +1,5 @@ { - "SystemIdentifier": "REAN HealthGuru", + "SystemIdentifier": "Awards Service", "Auth" : { "Authentication": "Custom", "Authorization": "Custom" diff --git a/src/domain.types/engine/engine.types.ts b/src/domain.types/engine/engine.types.ts index 07b92cc..fb56128 100644 --- a/src/domain.types/engine/engine.types.ts +++ b/src/domain.types/engine/engine.types.ts @@ -143,6 +143,7 @@ export const ConditionOperandDataTypeList: OperandDataType[] = [ OperandDataType.Boolean, OperandDataType.Text, OperandDataType.Array, + OperandDataType.Object, OperandDataType.Date, ]; diff --git a/src/modules/engine.execution/schema.engine.ts b/src/modules/engine.execution/schema.engine.ts index eabe3d0..83333b9 100644 --- a/src/modules/engine.execution/schema.engine.ts +++ b/src/modules/engine.execution/schema.engine.ts @@ -138,7 +138,7 @@ export class SchemaEngine { } const added = await processor.storeData(context.id, almanacObject.Data.ToBeAdded, action.InputParams, action.OutputParams); var removedData = null; - if (almanacObject.Data.ToBeRemoved) { + if (almanacObject.Data.ToBeRemoved.length > 0) { const removed = await processor.removeData(context.id, almanacObject.Data.ToBeRemoved, action.InputParams, action.OutputParams); removedData = removed?.Data; }