diff --git a/apps/backend/src/routers/websoc.ts b/apps/backend/src/routers/websoc.ts index 28477abac..ad8a5db1f 100644 --- a/apps/backend/src/routers/websoc.ts +++ b/apps/backend/src/routers/websoc.ts @@ -14,7 +14,11 @@ function sanitizeSearchParams(params: Record) { } } if ('department' in params) { - params.department = params.department.toUpperCase(); + if (params.department.toUpperCase() === 'ALL') { + delete params.department; + } else { + params.department = params.department.toUpperCase(); + } } if ('courseNumber' in params) { params.courseNumber = params.courseNumber.toUpperCase();