mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 10:28:10 +08:00
features
This commit is contained in:
@ -9,8 +9,8 @@ export const fetchWorkflowDraft: Fetcher<FetchWorkflowDraftResponse, string> = (
|
||||
return get<FetchWorkflowDraftResponse>(url, {}, { silent: true })
|
||||
}
|
||||
|
||||
export const syncWorkflowDraft: Fetcher<CommonResponse, { url: string; params: Pick<FetchWorkflowDraftResponse, 'graph' | 'features'> }> = ({ url, params }) => {
|
||||
return post<CommonResponse>(url, { body: params })
|
||||
export const syncWorkflowDraft = ({ url, params }: { url: string; params: Pick<FetchWorkflowDraftResponse, 'graph' | 'features'> }) => {
|
||||
return post<CommonResponse & { updated_at: number }>(url, { body: params })
|
||||
}
|
||||
|
||||
export const fetchNodesDefaultConfigs: Fetcher<any, string> = (url) => {
|
||||
|
||||
Reference in New Issue
Block a user