mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-22 23:31:12 +02:00
feat(podcasts): add revert-regeneration and surface cancel on the live card
This commit is contained in:
parent
f0fc660d70
commit
aa7f14d94f
9 changed files with 384 additions and 31 deletions
|
|
@ -43,6 +43,14 @@ class PodcastsApiService {
|
|||
return baseApiService.post(`${BASE}/${podcastId}/transcript/regenerate`, podcastDetail);
|
||||
};
|
||||
|
||||
// Backs out of a regeneration: the podcast returns to ready with its
|
||||
// existing audio untouched. 409 when there is no episode to fall back to.
|
||||
revertRegeneration = async (podcastId: number) => {
|
||||
return baseApiService.post(`${BASE}/${podcastId}/regenerate/revert`, podcastDetail);
|
||||
};
|
||||
|
||||
// Only for podcasts that have produced nothing yet; once an episode
|
||||
// exists the backend refuses (409) and revertRegeneration is the way back.
|
||||
cancel = async (podcastId: number) => {
|
||||
return baseApiService.post(`${BASE}/${podcastId}/cancel`, podcastDetail);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue