Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
Update getSpeakersSessionsSchedule.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoGresse authored Mar 31, 2024
1 parent 9313866 commit 208fd2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/openplanner/getSpeakersSessionsSchedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ export const getSpeakersSessionsSchedule = async (payload: {
const groupedSessionsByHour = Object.entries(groupedSessions).reduce((acc: any, [day, talks]: any) => {
const groupedByHour = talks.reduce((acc: any, talk: any) => {
try {
if(!talk.dateStart || !talk.dateEnd) {
console.warn("Missing dateStart or dateEnd for talk", talk)
return acc
}
// @ts-ignore
const startTime = new Date(talk.dateStart).toISOString().split('T')[1].split(':')
// @ts-ignore
Expand Down

0 comments on commit 208fd2c

Please sign in to comment.