From 3b0bd172ba034191c1a10d9234958bff899edfda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Sat, 13 Mar 2021 16:08:31 +0000 Subject: [PATCH] Clean results from redownload details --- lib/tools/redownload/redownload.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/tools/redownload/redownload.js b/lib/tools/redownload/redownload.js index 42b4de3..b4b4627 100644 --- a/lib/tools/redownload/redownload.js +++ b/lib/tools/redownload/redownload.js @@ -195,6 +195,8 @@ var Redownload = function() { offenders: offenders }; + cleanResults(results); + deferred.resolve(data); } }); @@ -1010,6 +1012,13 @@ var Redownload = function() { } } + // Clean all the pollution this module added to the results + function cleanResults(requests) { + requests.forEach(function(req) { + delete req.weightCheck; + }); + } + return { recheckAllFiles: recheckAllFiles, listRequestWeight: listRequestWeight,