forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits

postPodcastJobCancel.ts11 lines, 491 bytesHistoryRawDownload
1import { client } from "../client";
2import 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 */
9export function postPodcastJobCancel(id: string): Promise<PodcastCancelVerdict> {
10 return client<PodcastCancelVerdict>(`/podcast/jobs/${encodeURIComponent(id)}/cancel`, { method: "POST" });
11}