- sistemato timeout corto

- corretto errori sulla generazione del PDF
- corretto alcune directory
- corretto fs.promise
- corretto CORS !
This commit is contained in:
Surya Paolo
2025-05-15 14:27:40 +02:00
parent 300b8434ef
commit 50015712f5
54 changed files with 1910 additions and 235 deletions

View File

@@ -131,6 +131,11 @@ async function Request(type, path, payload, responsedata = {}, options = {}) {
...responsedata,
};
// ✅ AGGIUNGI IL TIMEOUT DALLE OPTIONS
if (options?.timeout) {
config.timeout = options.timeout; // in millisecondi (es. 300000 = 5 minuti)
}
if (options?.stream) config.responseType = 'stream';
let response;