From c0b420d97f0208eb66a556b122f8d5c99b0b2747 Mon Sep 17 00:00:00 2001 From: geoffreychen777 Date: Mon, 19 Sep 2022 23:09:18 +0100 Subject: [PATCH] v2.0.0 --- app/repositories/scraper-repository/scrapers/scraper.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/repositories/scraper-repository/scrapers/scraper.ts b/app/repositories/scraper-repository/scrapers/scraper.ts index e36b3466..5766c50c 100644 --- a/app/repositories/scraper-repository/scrapers/scraper.ts +++ b/app/repositories/scraper-repository/scrapers/scraper.ts @@ -71,11 +71,11 @@ export class Scraper implements ScraperType { async function scrapeImpl( this: ScraperType, - entityDraft: PaperEntity, + paperEntityDraft: PaperEntity, force = false ): Promise { const { scrapeURL, headers, enable } = this.preProcess( - entityDraft + paperEntityDraft ) as ScraperRequestType; if (enable || force) { @@ -83,8 +83,8 @@ async function scrapeImpl( scrapeURL, headers )) as Response; - return this.parsingProcess(response, entityDraft) as PaperEntity; + return this.parsingProcess(response, paperEntityDraft) as PaperEntity; } else { - return entityDraft; + return paperEntityDraft; } }