Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit a23cdb2

Browse files
committed
fix: make timetable view work for teachers
1 parent 0458a9e commit a23cdb2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/client/src/services/sbhsApi/schemas.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,10 @@ export const timetableSchema = z
330330
roll: z.coerce.string().nullish(), // index of roll class
331331
lines: z.record(z.coerce.number()).nullish(),
332332
extraLines: z.record(z.coerce.number()).nullish(),
333-
BoSNumber: z.coerce.number(), // Board of Studies number. 0 if not available
334-
studentId: z.string(), // Student ID number
335-
year: z.string(), // student's [primary] year group
336-
years: z.string().array(), // array of years the student is in
333+
BoSNumber: z.coerce.number().nullish(), // Board of Studies number. 0 if not available
334+
studentId: z.string().nullish(), // Student ID number
335+
year: z.string().nullish(), // student's [primary] year group
336+
years: z.string().array().nullish(), // array of years the student is in
337337
}),
338338
days: z.record(timetableDaySchema),
339339
subjects: z.array(

0 commit comments

Comments
 (0)