Skip to content

Commit

Permalink
fix: getClassesByCourse
Browse files Browse the repository at this point in the history
  • Loading branch information
mathhulk committed Nov 1, 2024
1 parent 9ca2455 commit be94ded
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/backend/src/modules/course/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export const getClassesByCourse = async (
courseNumber: string
) => {
const classes = await ClassModel.find({
"subjectArea.code": subjectArea,
"catalogNumber.formatted": courseNumber,
"course.subjectArea.code": subjectArea,
"course.catalogNumber.formatted": courseNumber,
}).lean();

return classes.map(formatClass);
Expand Down

0 comments on commit be94ded

Please sign in to comment.