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) => {
|
return new Promise<any>((resolve: (updatedProcess: any) => void, reject: (error: string) => void) => {
|
||||||
this.checkToken().then(() => {
|
this.checkToken().then(() => {
|
||||||
const userStore = UserStore.getInstance();
|
const userStore = UserStore.getInstance();
|
||||||
@ -520,7 +520,6 @@ export default class MessageBus {
|
|||||||
this.sendMessage({
|
this.sendMessage({
|
||||||
type: 'UPDATE_PROCESS',
|
type: 'UPDATE_PROCESS',
|
||||||
processId,
|
processId,
|
||||||
lastStateId,
|
|
||||||
newData,
|
newData,
|
||||||
privateFields,
|
privateFields,
|
||||||
roles,
|
roles,
|
||||||
@ -624,7 +623,7 @@ export default class MessageBus {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('[MessageBus] sendMessage:', message, 'to', this.origin);
|
// console.log('[MessageBus] sendMessage:', message, 'to', this.origin);
|
||||||
iframe.contentWindow?.postMessage(message, this.origin);
|
iframe.contentWindow?.postMessage(message, this.origin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user