@@ -2,7 +2,7 @@ import "server-only"
22import { stripHtml } from "string-strip-html"
33import { SchedSpeaker , ScheduleSession } from "@/app/conf/2023/types"
44
5- import { fetchData } from "../_api/sched-client"
5+ import { fetchSchedData } from "../_api/sched-client"
66import { speakers as speakers2024 } from "../2024/_data"
77import { speakers as speakers2023 } from "../2023/_data"
88
@@ -17,7 +17,7 @@ const token = USE_2025
1717 : process . env . SCHED_ACCESS_TOKEN_2024
1818
1919async function getSpeakers ( ) : Promise < SchedSpeaker [ ] > {
20- const users = await fetchData < SchedSpeaker [ ] > (
20+ const users = await fetchSchedData < SchedSpeaker [ ] > (
2121 `${ apiUrl } /user/list?api_key=${ token } &format=json&fields=username,company,position,name,about,location,url,avatar,role,socialurls` ,
2222 )
2323
@@ -26,6 +26,7 @@ async function getSpeakers(): Promise<SchedSpeaker[]> {
2626 . map ( user => {
2727 return {
2828 ...user ,
29+ socialurls : user . socialurls || [ ] ,
2930 about : preprocessDescription ( user . about ) ,
3031 }
3132 } )
@@ -39,7 +40,7 @@ async function getSpeakers(): Promise<SchedSpeaker[]> {
3940}
4041
4142async function getSchedule ( ) : Promise < ScheduleSession [ ] > {
42- const sessions = await fetchData < ScheduleSession [ ] > (
43+ const sessions = await fetchSchedData < ScheduleSession [ ] > (
4344 `${ apiUrl } /session/export?api_key=${ token } &format=json` ,
4445 )
4546
@@ -68,8 +69,6 @@ function preprocessDescription(description: string | undefined | null): string {
6869
6970export const speakers = await getSpeakers ( )
7071
71- console . log ( "speakers" , speakers )
72-
7372// TODO: Collect tags from schedule for speakers.
7473export const schedule = await getSchedule ( )
7574
0 commit comments