Files
tubearchivist/frontend/src/api/actions/updateDownloadQueueStatusById.ts
2025-03-15 13:50:26 +01:00

13 lines
395 B
TypeScript

import APIClient from '../../functions/APIClient';
export type DownloadQueueStatus = 'ignore' | 'ignore-force' | 'pending' | 'priority';
const updateDownloadQueueStatusById = async (youtubeId: string, status: DownloadQueueStatus) => {
return APIClient(`/api/download/${youtubeId}/`, {
method: 'POST',
body: { status: status },
});
};
export default updateDownloadQueueStatusById;