From d9501b1f56ee343b90b788dc685436a8ca4344a2 Mon Sep 17 00:00:00 2001 From: NicolasCantu Date: Thu, 19 Dec 2024 14:37:45 +0100 Subject: [PATCH] Call create_response_prd when detecting a modified state --- src/services/service.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/services/service.ts b/src/services/service.ts index 51d11ce..a4af98f 100755 --- a/src/services/service.ts +++ b/src/services/service.ts @@ -391,7 +391,6 @@ export default class Services { if (Object.entries(retrievedValues).length != 0) { // We update the process with the value we retrieved const hashToValues = JSON.stringify(retrievedValues); - console.log(hashToValues); const apiReturn = this.sdkClient.update_process_state(processId, stateId, hashToValues); await this.handleApiReturn(apiReturn); } @@ -409,9 +408,9 @@ export default class Services { if (updatedProcess.modified_state) { - // For now it can only mean we added a validation token to an existing state - // Not sure what action to take console.log('modified state:', updatedProcess.modified_state); + const responsePrdReturn = this.sdkClient.create_response_prd(processId, updatedProcess.modified_state); + await this.handleApiReturn(responsePrdReturn); } }