Align badges and fix search
This commit is contained in:
@@ -19,7 +19,7 @@ router.get('/', async (req, res) => {
|
||||
const params = [];
|
||||
|
||||
if (search) {
|
||||
whereConditions.push('(c.name LIKE ? OR c.description LIKE ?)');
|
||||
whereConditions.push('(LOWER(c.name) LIKE LOWER(?) OR LOWER(c.description) LIKE LOWER(?))');
|
||||
params.push(`%${search}%`, `%${search}%`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user