@@ -2,7 +2,7 @@ import "server-only"
2
2
import { stripHtml } from "string-strip-html"
3
3
import { SchedSpeaker , ScheduleSession } from "@/app/conf/2023/types"
4
4
5
- import { fetchData } from "../_api/sched-client"
5
+ import { fetchSchedData } from "../_api/sched-client"
6
6
import { speakers as speakers2024 } from "../2024/_data"
7
7
import { speakers as speakers2023 } from "../2023/_data"
8
8
@@ -17,7 +17,7 @@ const token = USE_2025
17
17
: process . env . SCHED_ACCESS_TOKEN_2024
18
18
19
19
async function getSpeakers ( ) : Promise < SchedSpeaker [ ] > {
20
- const users = await fetchData < SchedSpeaker [ ] > (
20
+ const users = await fetchSchedData < SchedSpeaker [ ] > (
21
21
`${ apiUrl } /user/list?api_key=${ token } &format=json&fields=username,company,position,name,about,location,url,avatar,role,socialurls` ,
22
22
)
23
23
@@ -26,6 +26,7 @@ async function getSpeakers(): Promise<SchedSpeaker[]> {
26
26
. map ( user => {
27
27
return {
28
28
...user ,
29
+ socialurls : user . socialurls || [ ] ,
29
30
about : preprocessDescription ( user . about ) ,
30
31
}
31
32
} )
@@ -39,7 +40,7 @@ async function getSpeakers(): Promise<SchedSpeaker[]> {
39
40
}
40
41
41
42
async function getSchedule ( ) : Promise < ScheduleSession [ ] > {
42
- const sessions = await fetchData < ScheduleSession [ ] > (
43
+ const sessions = await fetchSchedData < ScheduleSession [ ] > (
43
44
`${ apiUrl } /session/export?api_key=${ token } &format=json` ,
44
45
)
45
46
@@ -68,8 +69,6 @@ function preprocessDescription(description: string | undefined | null): string {
68
69
69
70
export const speakers = await getSpeakers ( )
70
71
71
- console . log ( "speakers" , speakers )
72
-
73
72
// TODO: Collect tags from schedule for speakers.
74
73
export const schedule = await getSchedule ( )
75
74
0 commit comments