From a9403643d52a2bd858e76f1887c1f64631c10592 Mon Sep 17 00:00:00 2001 From: Sadrinho27 Date: Fri, 7 Nov 2025 19:42:43 +0100 Subject: [PATCH] Removed lastStateId params in updateProcess func --- lib/4nk/MessageBus.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/4nk/MessageBus.ts b/lib/4nk/MessageBus.ts index adae0ff..c03aeb8 100644 --- a/lib/4nk/MessageBus.ts +++ b/lib/4nk/MessageBus.ts @@ -489,7 +489,7 @@ export default class MessageBus { }); } - public updateProcess(processId: string, lastStateId: string, newData: Record, privateFields: string[], roles: Record | null): Promise { + public updateProcess(processId: string, newData: Record, privateFields: string[], roles: Record | null): Promise { return new Promise((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); }