From 2046ae794cb2ce86c85d498e17c5354d3c560761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Sverre=20Lien=20Sell=C3=A6g?= Date: Fri, 29 May 2020 15:13:02 +0200 Subject: [PATCH] rename function --- src/scrape.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scrape.js b/src/scrape.js index dc5dc43..38c8801 100644 --- a/src/scrape.js +++ b/src/scrape.js @@ -6,7 +6,7 @@ const fs = require('fs').promises; const gm = require('gm').subClass({ imageMagick: true }); import { graphql_endpoint } from './constants'; -import { page_events_url, event_url } from './logic'; +import { event_url } from './logic'; const get_upcoming_events = pathOr( null, @@ -33,7 +33,7 @@ const load_event = async (page, event_id) => { }); }); - await page.goto(facebook_event_url(event_id)); + await page.goto(event_url(event_id)); const images = await image_data; const image = images.reduce((res, image) => maxBy((item) => item.length, res, image),