diff --git a/apps/api/src/routes/v1/rest/grades/{id}/lib.ts b/apps/api/src/routes/v1/rest/grades/{id}/lib.ts index 9bb4a096..779ba5b0 100644 --- a/apps/api/src/routes/v1/rest/grades/{id}/lib.ts +++ b/apps/api/src/routes/v1/rest/grades/{id}/lib.ts @@ -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,