diff --git a/backend/src/services/sport/client.ts b/backend/src/services/sport/client.ts index ca15c6f..47d5c8b 100644 --- a/backend/src/services/sport/client.ts +++ b/backend/src/services/sport/client.ts @@ -98,6 +98,7 @@ export class SportClient extends ApiClient { title: t.title, startsAt: t.start, endsAt: t.end, + groupId: t.extendedProps.group_id, checkedIn: t.extendedProps.checked_in ?? false, checkInAvailable: t.extendedProps.can_check_in ?? false, })) @@ -119,6 +120,7 @@ export class SportClient extends ApiClient { checkedIn: raw.checked_in ?? false, checkInAvailable: raw.can_check_in ?? false, location: raw.training.place, + groupId: raw.training.group.id, teachers: raw.training.group.teachers.map(t => ({ id: t.id, firstName: t.first_name, diff --git a/backend/src/services/sport/types.ts b/backend/src/services/sport/types.ts index f2077f1..4307e8d 100644 --- a/backend/src/services/sport/types.ts +++ b/backend/src/services/sport/types.ts @@ -10,6 +10,7 @@ export type TrainingInfo = { title: string startsAt: Date endsAt: Date + groupId: number checkedIn: boolean checkInAvailable: boolean } @@ -23,6 +24,7 @@ export type TrainingDetailed = { accredited: boolean checkedIn: boolean checkInAvailable: boolean + groupId: number location: string teachers: { id: number