feat: support removing workflow runs

This commit is contained in:
Fu Diwei
2025-01-21 23:11:48 +08:00
parent c61b2d2d3f
commit 8dc86209df
6 changed files with 82 additions and 48 deletions

View File

@@ -31,3 +31,7 @@ export const list = async (request: ListWorkflowRunsRequest) => {
expand: request.expand ? "workflowId" : undefined,
});
};
export const remove = async (record: MaybeModelRecordWithId<WorkflowRunModel>) => {
return await getPocketBase().collection(COLLECTION_NAME).delete(record.id);
};