diff --git a/package.json b/package.json index fe25bf9..ad36780 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@focus-reactive/graphql-content-layer", - "version": "3.1.24", + "version": "3.1.25", "private": false, "main": "dist/index.js", "scripts": { diff --git a/src/fetch-speakers.js b/src/fetch-speakers.js index 9639263..520ea7a 100644 --- a/src/fetch-speakers.js +++ b/src/fetch-speakers.js @@ -164,7 +164,12 @@ const fetchData = async (client, { tagColors, labelColors, ...vars }) => { console.log('invalid speaker', JSON.stringify(speaker)); } - const { activities, offlineActivities, ...restSpeakerData } = speaker; + const { + activities, + offlineActivities, + allActivities, + ...restSpeakerData + } = speaker; return { ...restSpeakerData, @@ -183,6 +188,12 @@ const fetchData = async (client, { tagColors, labelColors, ...vars }) => { ? offlineActivities.talks.map(convertDateToIso) : []), ], + allTalks: [ + ...(allActivities + ? allActivities.lightningTalks.map(convertDateToIso) + : []), + ...(allActivities ? allActivities.talks.map(convertDateToIso) : []), + ], }, }; }); diff --git a/src/utils.js b/src/utils.js index a5c1892..35c0cfa 100644 --- a/src/utils.js +++ b/src/utils.js @@ -143,6 +143,7 @@ const createSlug = (object, type) => { talk: obj => obj.title, talks: obj => obj.title, offlineTalks: obj => obj.title, + allTalks: obj => obj.title, workshop: obj => obj.title, workshops: obj => obj.title, other: obj => {