Skip to content

Commit

Permalink
actual temp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abhidas03 committed Apr 29, 2024
1 parent 91652dc commit 42d2d89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/pagebody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ async function filterData(searchParams: { query?: string; filters?: string }) {
if (!searchQuery.length) {
return [];
}

searchQuery[0] = searchQuery[0].replaceAll(/\W/g, ' ');


let prismaQuery: any[] = [];

Expand Down Expand Up @@ -158,7 +161,6 @@ async function filterData(searchParams: { query?: string; filters?: string }) {
.join(") AND (");
}

filterString.replaceAll(/\W/g, ' ')
const query = `SELECT FIRST_NAME, LAST_NAME, GRAD_YEAR, DORM, DORM_ROOM, \
USER_ID FROM student_data WHERE (${filterString})`;

Expand Down

0 comments on commit 42d2d89

Please sign in to comment.