Skip to content

Commit fce9d9f

Browse files
committed
Switch from .map to .filter
1 parent 8995313 commit fce9d9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

htmldumper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ function makeDump (apiURL, prefix, ns) {
9999
// Fetch the next batch of oldids while processing the last one
100100
getArticles(apiURL, ns, next),
101101

102-
Promise.map(articles, function(article) {
102+
Promise.filter(articles, function(article) {
103103
var title = article[0];
104104
var oldid = article[1];
105105
return dumpArticle(prefix, title, oldid)
106106
.catch(function(e) {
107107
console.error('Error in makeDump:', title, oldid, e.stack);
108108
});
109-
}, { concurrency: maxConcurrency }).then(function(){})
109+
}, { concurrency: maxConcurrency })
110110
])
111111
.then(function(results){
112112
//console.log(results);

0 commit comments

Comments
 (0)