diff --git a/routes/catalog.js b/routes/catalog.js index 3552435..6208087 100644 --- a/routes/catalog.js +++ b/routes/catalog.js @@ -21,7 +21,9 @@ catalogRouter.get('/', async (req, res) => { const params = []; if (title) { - query += ' AND title ILIKE $1'; + query += ' AND (title ILIKE $1'; + query += ' OR host ILIKE $1'; + query += ' OR description ILIKE $1) '; params.push(`%${title}%`); } else { params.push('');