From 160efdf6abd53fff64e468a9112ae64e5a943caf Mon Sep 17 00:00:00 2001 From: = Date: Thu, 10 Sep 2020 14:06:09 -0700 Subject: [PATCH] More fixes --- app/crawler/specificCrawlers/olx.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/crawler/specificCrawlers/olx.js b/app/crawler/specificCrawlers/olx.js index 405a613..44ce679 100644 --- a/app/crawler/specificCrawlers/olx.js +++ b/app/crawler/specificCrawlers/olx.js @@ -92,9 +92,10 @@ class OlxCrawler { if (PRINT_CRAWLER_DEBUG) { console.log("================================"); console.log("Category Indexer index : ", index); - console.log("\tTotal entries : ", singlePageResult.length) } + if (singlePageResult) { + console.log("\tTotal entries : ", singlePageResult.length) const saveResults = await this.saveCrawledResults(singlePageResult); const { newRecords, existingRecords } = saveResults;