Partial refactoring/bug fix w/ session time correction

This commit is contained in:
IrPgFKS0 committed 2023-09-09 22:57:39 -07:00
1 parent 7c896f3920
commit 49ad83a71a
6 files changed
+141 -143

No files matched your search

+3 -3
View File
@@ -75,11 +75,11 @@ module.exports = {
}).then(response =>
response.json().then(data => data)
).then(res => res);
const stream = fs.createWriteStream(outputDir);
if (!res.data || !res.data.token) {
client.error(`Error downloading File "${filename}":`);
client.error(res);
const errorText = await res.text();
client.error(`Error downloading File "${filename}": message: ${errorText}: DownloadNitradoFile`);
return 1;
}
const { body } = await fetch(res.data.token.url);