Skip to content

Commit

Permalink
Fixed backend for schedules (#145)
Browse files Browse the repository at this point in the history
Co-authored-by: “xavilien” <“[email protected]”>
  • Loading branch information
Xavilien and “xavilien” authored Apr 1, 2024
1 parent 10eabd1 commit a9ade70
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions backend/src/controllers/courses.mts
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,7 @@ export const getCourses: RequestHandler<
courseID: { in: courseIDs },
},
include: {
schedules: fromBoolLiteral(req.query.schedules) && {
select: {
id: true,
year: true,
semester: true,
session: true,
},
},
schedules: fromBoolLiteral(req.query.schedules)
},
});
res.json(courses);
Expand Down

0 comments on commit a9ade70

Please sign in to comment.