Fix hardcoded constant when polling for timetable, so teachers can get their timetable too

This commit is contained in:
Elias Müller 2023-10-18 20:48:12 +02:00
parent 4475d50524
commit 4b5c2bf022

@ -26,7 +26,7 @@ class GetTimetableCache extends RequestCache<GetTimetableResponse> {
options: GetTimetableParamsOptions(
element: GetTimetableParamsOptionsElement(
id: (await Authenticate.getSession()).personId,
type: 5,
type: (await Authenticate.getSession()).personType,
keyType: GetTimetableParamsOptionsElementKeyType.id,
),
startDate: startdate,