Requiring downloader name to be specified.

This commit is contained in:
Roland 2023-04-01 15:34:46 -06:00
parent 5692ddb20d
commit 55cf76a884
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
15 changed files with 215 additions and 320 deletions

View file

@ -412,6 +412,16 @@ export async function getArchive(archiveId) {
}
export async function postDownload(urls, downloader, frequency, sub_downloader, excludedURLs, destination) {
if (!downloader) {
toast({
type: 'error',
title: 'Failed to submit download',
description: 'downloader is required, but was not provided',
time: 5000,
})
throw new Error('downloader is required, but was not provided');
}
let body = {
urls: urls,
downloader: downloader,