(id: string, query: string)
| 33 | .then(res => res.data.data); |
| 34 | |
| 35 | const updateFile = async (id: string, query: string) => { |
| 36 | await fetcher(query) |
| 37 | const { publishFile } = await customFetcher<PublishFileResponse>(generatePublishQuery(id)).then(res => res.data.data) |
| 38 | return { |
| 39 | slug: publishFile?.slug, |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | export function useEditFile() { |
| 44 | const queryClient = useQueryClient() |
no test coverage detected
searching dependent graphs…