From 35f900d6ab29458f5d6c3f77552404764f97102d Mon Sep 17 00:00:00 2001 From: AMIAY Date: Sun, 25 Jan 2026 14:15:19 +0100 Subject: [PATCH] Update fileManager.js --- backend/utils/fileManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/utils/fileManager.js b/backend/utils/fileManager.js index 62e1432..bad80b3 100644 --- a/backend/utils/fileManager.js +++ b/backend/utils/fileManager.js @@ -340,7 +340,7 @@ async function downloadFile(url, dest, progressCallback, maxRetries = 5) { }); }); - return; + return dest; } catch (error) { lastError = error; @@ -363,7 +363,7 @@ async function downloadFile(url, dest, progressCallback, maxRetries = 5) { // If file is substantial size (> 1.5GB), treat as success and break if (sizeInMB >= 1500) { console.log('File appears to be complete despite error, treating as success'); - return; // Exit the retry loop successfully + return dest; // Exit the retry loop successfully } }