feat: show only isActive

This commit is contained in:
Javier Segarra 2025-01-16 12:58:04 +01:00
parent 4c1514f2a7
commit e618090c7c
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,8 @@ const query = `SELECT i.id, i.longName, i.size, i.category,
LEFT JOIN image im
ON im.collectionFk = 'catalog'
AND im.name = i.image
WHERE i.longName LIKE CONCAT('%', #search, '%')
OR i.id = #search
WHERE (i.longName LIKE CONCAT('%', #search, '%')
OR i.id = #search ) AND i.isActive = 1
ORDER BY i.longName LIMIT 50`;
const onSearch = data => (items.value = data || []);