From c202ce520757a3cd45e75e28bc363a6b7c6e1d36 Mon Sep 17 00:00:00 2001 From: jzitnik-dev Date: Thu, 23 Oct 2025 13:10:56 +0200 Subject: [PATCH] feat: Keep current xlsx document --- scrape/scraper.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scrape/scraper.js b/scrape/scraper.js index efd5be3..76cb39e 100644 --- a/scrape/scraper.js +++ b/scrape/scraper.js @@ -170,6 +170,8 @@ async function handleError(page, err) { console.log('Waiting for file:', downloadedFilePath); await waitForFile(downloadedFilePath); + await fs.promises.cp(downloadedFilePath, "db/current.xlsx"); + await parseThisShit(downloadedFilePath); await clearDownloadsFolder();