feat: workflow run status & time

This commit is contained in:
Fu Diwei
2025-01-04 22:07:01 +08:00
parent b686579acc
commit 3b9a7fe805
29 changed files with 505 additions and 181 deletions

View File

@@ -1,5 +1,6 @@
import { ClientResponseError } from "pocketbase";
import { WORKFLOW_TRIGGERS } from "@/domain/workflow";
import { getPocketBase } from "@/repository/pocketbase";
export const run = async (id: string) => {
@@ -11,7 +12,8 @@ export const run = async (id: string) => {
"Content-Type": "application/json",
},
body: {
id,
workflowId: id,
trigger: WORKFLOW_TRIGGERS.MANUAL,
},
});