Removed lastStateId params in updateProcess func

This commit is contained in:
Sadrinho27 2025-11-07 19:42:43 +01:00
parent 3057c1e529
commit a9403643d5

View File

@ -489,7 +489,7 @@ export default class MessageBus {
});
}
public updateProcess(processId: string, lastStateId: string, newData: Record<string, any>, privateFields: string[], roles: Record<string, RoleDefinition> | null): Promise<any> {
public updateProcess(processId: string, newData: Record<string, any>, privateFields: string[], roles: Record<string, RoleDefinition> | null): Promise<any> {
return new Promise<any>((resolve: (updatedProcess: any) => void, reject: (error: string) => void) => {
this.checkToken().then(() => {
const userStore = UserStore.getInstance();
@ -520,7 +520,6 @@ export default class MessageBus {
this.sendMessage({
type: 'UPDATE_PROCESS',
processId,
lastStateId,
newData,
privateFields,
roles,
@ -624,7 +623,7 @@ export default class MessageBus {
return;
}
console.log('[MessageBus] sendMessage:', message, 'to', this.origin);
// console.log('[MessageBus] sendMessage:', message, 'to', this.origin);
iframe.contentWindow?.postMessage(message, this.origin);
}