mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 19:09:29 +00:00
13 lines
395 B
TypeScript
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;
|