12 lines
341 B
TypeScript
12 lines
341 B
TypeScript
import { ipcRenderer } from "electron";
|
|
|
|
const dispatch = async (workflowLogId: string, params: any) => {
|
|
return ipcRenderer.invoke("workflow:dispatch", workflowLogId, params);
|
|
};
|
|
|
|
const cancel = async (workflowLogId: string) => {
|
|
return ipcRenderer.invoke("workflow:cancel", workflowLogId);
|
|
};
|
|
|
|
export default { dispatch, cancel };
|