(id: string, query: string)
| 20 | .then(res => res.data.data); |
| 21 | |
| 22 | const updateFile = async (id: string, query: string) => { |
| 23 | await fetcher(query) |
| 24 | const { publishFile } = await customFetcher<PublishFileResponse>(generatePublishQuery(id)).then(res => res.data.data) |
| 25 | return { |
| 26 | slug: publishFile?.slug, |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | export function useFileDelete(){ |
| 31 | const queryClient = useQueryClient() |
no test coverage detected
searching dependent graphs…