Removed lastStateId params in updateProcess func
This commit is contained in:
parent
3057c1e529
commit
a9403643d5
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user