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

This commit is contained in:
MineTec committed 2023-10-18 20:48:12 +02:00
1 parent 4475d50524
commit 4b5c2bf022
1 file changed
+1 -1
@@ -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,