Eliminate logging, and delete auto-close code on push as this breaks large files.

This commit is contained in:
Nathanael Anderson
2024-04-11 13:06:58 -06:00
parent 9b493aa782
commit 52e86a5b89
+5 -6
View File
@@ -159,7 +159,6 @@ class ADB {
// rejectUnauthorized: process.env.NODE_ENV !== 'dev', // rejectUnauthorized: process.env.NODE_ENV !== 'dev',
body: JSON.stringify({ token: token }), body: JSON.stringify({ token: token }),
}; };
console.log("IFT:", url, options)
fetch(url, options).then(response => { fetch(url, options).then(response => {
if (!response.ok || response.body == null) { if (!response.ok || response.body == null) {
console.log(response.statusText, response.status, response.headers); console.log(response.statusText, response.status, response.headers);
@@ -167,7 +166,6 @@ class ADB {
} }
response.json().then(body => { response.json().then(body => {
let tasks = []; let tasks = [];
console.log("IFT Body", body);
for (let i = 0; i < body.data.apps.length; i++) { for (let i = 0; i < body.data.apps.length; i++) {
let app = body.data.apps[i]; let app = body.data.apps[i];
if (Number(app.app_categories_id) === 1) { if (Number(app.app_categories_id) === 1) {
@@ -467,15 +465,16 @@ class ADB {
scb(_stats); scb(_stats);
}, 1000); }, 1000);
transfer.on('progress', stats => { transfer.on('progress', stats => {
clearTimeout(autoCancel); // clearTimeout(autoCancel);
console.log("Progress", stats, Date.now());
_stats = stats; _stats = stats;
autoCancel = setTimeout(() => { /* autoCancel = setTimeout(() => {
clearInterval(interval); clearInterval(interval);
cb(); cb();
}, 90000); }, 90000); */
}); });
transfer.on('end', () => { transfer.on('end', () => {
clearTimeout(autoCancel); // clearTimeout(autoCancel);
clearInterval(interval); clearInterval(interval);
cb(); cb();
}); });