This commit is contained in:
Fredrik Burmester
2024-09-28 18:32:08 +02:00
parent 73c43d31ee
commit b3a938b53a
4 changed files with 73 additions and 6 deletions

View File

@@ -21,7 +21,11 @@ export const ActiveDownload: React.FC<Props> = ({ ...props }) => {
mutationFn: async () => {
if (!process) throw new Error("No active download");
await axios.delete(settings?.optimizedVersionsServerUrl + process.id);
await axios.delete(settings?.optimizedVersionsServerUrl + process.id, {
headers: {
Authorization: `Bearer ${settings?.optimizedVersionsAuthHeader}`,
},
});
const tasks = await checkForExistingDownloads();
for (const task of tasks) task.stop();
clearProcess();