Align badges and fix search

This commit is contained in:
2025-01-17 00:12:34 -05:00
parent 3f966ceac3
commit 0ba7d9f533
4 changed files with 272 additions and 81 deletions

View File

@@ -19,7 +19,7 @@ router.get('/', async (req, res) => {
const params = [];
if (search) {
whereConditions.push('(p.vendor LIKE ? OR vd.contact_name LIKE ?)');
whereConditions.push('(LOWER(p.vendor) LIKE LOWER(?) OR LOWER(vd.contact_name) LIKE LOWER(?))');
params.push(`%${search}%`, `%${search}%`);
}