diff --git a/scripts/openplanner/getSpeakersSessionsSchedule.ts b/scripts/openplanner/getSpeakersSessionsSchedule.ts index 050882a348..64071cae9c 100644 --- a/scripts/openplanner/getSpeakersSessionsSchedule.ts +++ b/scripts/openplanner/getSpeakersSessionsSchedule.ts @@ -46,7 +46,7 @@ export const getSpeakersSessionsSchedule = async (payload: { sessions: Session[], team: TeamMember[] }): Promise<{}> => { - const {event, speakers, sessions, team} = payload + const {event, speakers, sessions, team, sponsors} = payload const tracks: Track[] = event.tracks.map((t: Track, index: number) => ({ ...t, @@ -269,7 +269,7 @@ export const getSpeakersSessionsSchedule = async (payload: { delete schedule["1"] // 5. Add team members - console.log('Adding team, ' + team.length + ' members') + console.log('Find team, ' + team.length + ' members') const teamMembers = team.map((member: TeamMember) => { return { id: member.id, @@ -279,6 +279,7 @@ export const getSpeakersSessionsSchedule = async (payload: { socials: mapPersonSocials(member) } }) + console.log('Find sponsors, ' + sponsors.length + ' sponsors') console.log("Formatting output data done!") @@ -286,7 +287,8 @@ export const getSpeakersSessionsSchedule = async (payload: { speakers: outputSpeakers, sessions: outputSessions, schedule: schedule, - team: teamMembers + team: teamMembers, + sponsors } await fs.writeFile(outputFile, JSON.stringify(fileContent, null, 4))