diff --git a/update.js b/update.js index 4848af6514cd3b..cccb944543d5fb 100644 --- a/update.js +++ b/update.js @@ -160,6 +160,7 @@ class Main { const element = result.elements[i]; this.saveOffer(element); } + await this.sleep(1000); } while (paging.start - this.perPage < paging.total - paging.count); } @@ -182,7 +183,7 @@ class Main { } console.log(JSON.stringify(error.response, null, 2)); console.log('Next attempt in 1s...'); - await this.sleep(1000); + await this.sleep(5000); return this.fetchOffers(...arguments); } else { throw new Error(error);