Skip to content

Commit

Permalink
fix: ge search
Browse files Browse the repository at this point in the history
  • Loading branch information
ecxyzzy committed Nov 18, 2024
1 parent 681aaf3 commit 7115ae4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/backend/src/routers/websoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ function sanitizeSearchParams(params: Record<string, string>) {
}
}
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();
Expand Down

0 comments on commit 7115ae4

Please sign in to comment.