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(''); }