From 47e234b0f2bd98f49635aa63403f864939b8cbc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Sverre=20Lien=20Sell=C3=A6g?= Date: Fri, 29 May 2020 17:45:26 +0200 Subject: [PATCH] update image location --- src/scrape.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scrape.js b/src/scrape.js index f05d0c6..f9cea49 100644 --- a/src/scrape.js +++ b/src/scrape.js @@ -92,8 +92,8 @@ const save_images = async ({ image = null, event_id }) => { if (image === null) { return []; } - const original_path = `./events/img/${event_id}.jpg`; - const resized_path = `./events/img/${event_id}-square.jpg`; + const original_path = `./img/${event_id}.jpg`; + const resized_path = `./img/${event_id}-square.jpg`; const original = write_image(original_path, image); const resized_square = write_resized(resized_path, image); try {