feat: release and discard workflow changes

This commit is contained in:
Fu Diwei
2025-01-05 02:38:01 +08:00
parent 9c4831fa3f
commit 7cf96d7d7e
6 changed files with 206 additions and 165 deletions

View File

@@ -35,7 +35,7 @@ export const get = async (id: string) => {
});
};
export const save = async (record: Record<string, string | boolean | WorkflowNode>) => {
export const save = async (record: MaybeModelRecord<WorkflowModel>) => {
if (record.id) {
return await getPocketBase()
.collection(COLLECTION_NAME)