From c912ad9123d75e2f2f1257a3b8a2ec8665618c3c Mon Sep 17 00:00:00 2001 From: niczem Date: Sun, 17 Sep 2023 02:19:53 +0200 Subject: [PATCH] url screenshot bugfix for undefined var --- datasources/urlscreenshot/index.js | 2 +- docker-compose.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/datasources/urlscreenshot/index.js b/datasources/urlscreenshot/index.js index 04669e7..5b13fbf 100644 --- a/datasources/urlscreenshot/index.js +++ b/datasources/urlscreenshot/index.js @@ -74,7 +74,7 @@ module.exports = class Datasource extends Worker { Fs.mkdirSync(download_path); console.log('created dir ' + download_path); } - + urls = []; for (let i in urls) { let url = urls[i]; url = url.slice(0, -1); diff --git a/docker-compose.yml b/docker-compose.yml index 913cd37..ae522f4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,8 +2,8 @@ version: '3.7' services: - trawler_web: - container_name: trawler.web + trawler: + container_name: trawler entrypoint: npm --prefix /app/trawler run serve ports: - 8080:8080