From 043f0f593fb845cd32b624b87d7f36195bc77834 Mon Sep 17 00:00:00 2001 From: subinqkim Date: Sat, 3 Feb 2024 12:13:03 -0800 Subject: [PATCH] = changed to ILIKE op for title input --- routes/catalog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/catalog.js b/routes/catalog.js index a0080a4..2c5ed3a 100644 --- a/routes/catalog.js +++ b/routes/catalog.js @@ -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(''); }