pub async fn update_workflow( core: &Arc<AppCore>, id: &str, workflow: Workflow, ) -> Result<Workflow>