|
|
|
|
@ -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), |
|
|
|
|
|