Created downloadURLs population method in scraper.

This commit is contained in:
2021-06-12 01:05:54 -05:00
parent 48132155f8
commit ab65c9f15a
4 changed files with 30 additions and 12 deletions

View File

@@ -1,9 +1,11 @@
class Utils {
static async mapSeries(iterable, action) {
const resolved = [];
for (const x of iterable) {
await action(x);
resolved.push(await action(x));
}
return Promise.resolve();
return Promise.resolve(resolved);
}
static wait(duration) {