From 796d4f87080cf81b783bcb2b3ea15c7de9324494 Mon Sep 17 00:00:00 2001 From: lthanhhieu Date: Tue, 22 Aug 2023 10:07:05 +0700 Subject: [PATCH] feature-2658: Update all dependencies to latest version and ensure site generation works --- src/backend/fold_v1.js | 14 +++++++------- src/backend/fold_v2.js | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/backend/fold_v1.js b/src/backend/fold_v1.js index 6a2917fd6..0ab4cef6a 100644 --- a/src/backend/fold_v1.js +++ b/src/backend/fold_v1.js @@ -411,7 +411,7 @@ function returnAttendees(attendeesData) { function createSocialLinks(event) { const sociallinks = Array.from(event.social_links); - + sociallinks.forEach((link) => { link.show = true; switch (link.name.toLowerCase()) { @@ -484,10 +484,10 @@ function extractEventUrls(event, speakers, sponsors, reqOpts, next) { const twitterLink = arrayTwitterLink[arrayTwitterLink.length - 1]; const urls = { - main_page_url: event.event_url, - logo_url: event.logo, - background_url: event.background_image, - background_path: event.background_image, + main_page_url: event.external_event_url, + logo_url: event.logo_url, + background_url: event.original_image_url, + background_path: event.original_image_url, date: moment.parseZone(event.start_time).format('dddd, Do MMMM'), time: moment.parseZone(event.start_time).format('HH:mm'), end_date: moment.parseZone(event.end_time).format('dddd, Do MMMM'), @@ -501,8 +501,8 @@ function extractEventUrls(event, speakers, sponsors, reqOpts, next) { twitterLink: twitterLink, tweetUrl: sociallink, email: event.email, - orgname: event.organizer_name, - orgdescription: event.organizer_description, + orgname: event.owner_name, + orgdescription: event.owner_description, location_name: event.location_name, featuresection: featuresection, sponsorsection: sponsorsection, diff --git a/src/backend/fold_v2.js b/src/backend/fold_v2.js index 155e2e577..dbe5b7ff0 100644 --- a/src/backend/fold_v2.js +++ b/src/backend/fold_v2.js @@ -441,7 +441,7 @@ function returnAttendees(attendeesData) { function createSocialLinks(event) { const sociallinks = Array.from(event['social-links']).filter(Boolean); - + sociallinks.forEach((link) => { link.show = true; switch (link.name.toLowerCase()) { @@ -479,7 +479,7 @@ function createSocialLinks(event) { link.show = false; break; } - + if (link.link === '') { link.show = false; } @@ -513,8 +513,8 @@ function extractEventUrls(event, speakers, sponsors, reqOpts, next) { const arrayTwitterLink = sociallink.split('/'); const twitterLink = arrayTwitterLink[arrayTwitterLink.length - 1]; - const urls = { - main_page_url: event['event-url'], + const urls = { + main_page_url: event['external-event-url'], logo_url: event['logo-url'], background_url: event['original-image-url'], background_path: event['original-image-url'], @@ -534,8 +534,8 @@ function extractEventUrls(event, speakers, sponsors, reqOpts, next) { twitterLink: twitterLink, tweetUrl: sociallink, email: event.email, - orgname: event['organizer-name'], - orgdescription: event['organizer-description'], + orgname: event['owner-name'], + orgdescription: event['owner-description'], location_name: event['location-name'], featuresection: featuresection, sponsorsection: sponsorsection,