Add service.updateProcess()

This commit is contained in:
NicolasCantu 2025-01-24 13:10:32 +01:00
parent 62617caf79
commit c76d5121b1

View File

@ -394,6 +394,14 @@ export default class Services {
}
}
public updateProcess(processId: string, new_state: any): ApiReturn {
try {
return this.sdkClient.update_process(processId, JSON.stringify(new_state));
} catch (e) {
throw new Error(`Failed to update process: ${e}`);
}
}
// Create prd update for current process and update
public createPrdUpdate(processId: string, stateId: string): ApiReturn {
try {