Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
fix: 🐛 grades queries for department codes with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ecxyzzy committed Jan 31, 2024
1 parent 2c69eb7 commit ae7f9aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/routes/v1/rest/grades/{id}/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export function constructPrismaQuery(parsedQuery: Query): Prisma.GradesSectionWh
year,
quarter,
instructors: { some: { name: { contains: instructor, mode: "insensitive" } } },
department: department?.toUpperCase(),
department: department?.replace(/ /g, "").toUpperCase(),
courseNumber: courseNumber?.toUpperCase(),
courseNumeric,
sectionCode,
Expand Down

0 comments on commit ae7f9aa

Please sign in to comment.