Skip to content

Commit

Permalink
= changed to ILIKE op for title input
Browse files Browse the repository at this point in the history
  • Loading branch information
SubinQKim committed Feb 3, 2024
1 parent aa48acc commit 043f0f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/catalog.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ catalogRouter.get('/', async (req, res) => {
const params = [];

if (title) {
query += ' AND title = $1';
params.push(title);
query += ' AND title ILIKE $1';
params.push(`%${title}%`);
} else {
params.push('');
}
Expand Down

0 comments on commit 043f0f5

Please sign in to comment.