Skip to content

Commit 232b9d5

Browse files
committed
fix open planner on-the-fly format creation
1 parent c37a428 commit 232b9d5

File tree

1 file changed

+4
-3
lines changed
  • cloud/functions/src/crawlers/openplanner

1 file changed

+4
-3
lines changed

cloud/functions/src/crawlers/openplanner/crawler.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,11 @@ export const OPENPLANNER_CRAWLER: CrawlerKind<typeof OPENPLANNER_DESCRIPTOR_PARS
185185
const talkDurationInMinutes = startInstant.until(endInstant).total('minutes')
186186
const formatDuration = `PT${talkDurationInMinutes}m` as const;
187187

188-
const newFormat: TalkFormat = {
188+
const newFormat: ThemedTalkFormat = {
189189
id: `talk-${formatDuration}m`,
190-
title: `Talk de ${formatDuration}m`,
191-
duration: formatDuration
190+
title: `Talk de ${talkDurationInMinutes}m`,
191+
duration: formatDuration,
192+
themeColor: TALK_FORMAT_FALLBACK_COLORS[formatFallbackColors++],
192193
}
193194
formats.push(newFormat)
194195
console.warn(`Format with id ${session.formatId} (in talk ${session.id}) was not found in formats' list !.. Created it !`)

0 commit comments

Comments
 (0)