Pārlūkot izejas kodu

Clean results from redownload details

Gaël Métais 4 gadi atpakaļ
vecāks
revīzija
3b0bd172ba
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. 9 0
      lib/tools/redownload/redownload.js

+ 9 - 0
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,