hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits
| 1 | import { client } from "../client"; |
| 2 | import type { PodcastCancelVerdict } from "../client"; |
| 3 | |
| 4 | /** |
| 5 | * Cancel one job. `cancelled: false` says this call stopped nothing — the job |
| 6 | * had already finished or had already been cancelled — and is not an error, so |
| 7 | * it must not be surfaced as one. |
| 8 | */ |
| 9 | export function postPodcastJobCancel(id: string): Promise<PodcastCancelVerdict> { |
| 10 | return client<PodcastCancelVerdict>(`/podcast/jobs/${encodeURIComponent(id)}/cancel`, { method: "POST" }); |
| 11 | } |