Call create_response_prd when detecting a modified state

This commit is contained in:
NicolasCantu 2024-12-19 14:37:45 +01:00
parent a0b6f55701
commit d9501b1f56

View File

@ -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);
}
}