feat: Admin/Items show only isActive #99

Merged
jsegarra merged 3 commits from admin_item_isActive into beta 2025-01-16 12:29:41 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 2392f8c8d7 - Show all commits

View File

@ -23,7 +23,7 @@ const query = `SELECT i.id, i.longName, i.size, i.category,
ON im.collectionFk = 'catalog'
AND im.name = i.image
WHERE (i.longName LIKE CONCAT('%', #search, '%')
OR i.id = #search ) AND i.isActive = 1
OR i.id = #search) AND i.isActive = 1
Review

Cambiar:

AND i.isActive = 1 → AND i.isActive

Cambiar: `AND i.isActive = 1 → AND i.isActive`
Review

Totalmente de acuerdo, porque esto es SQL tal cual, no es la utilidad web que se hizo para este proyecto

Totalmente de acuerdo, porque esto es SQL tal cual, no es la utilidad web que se hizo para este proyecto
Review

Fet!
85296109ca

Fet! https://gitea.verdnatura.es/verdnatura/hedera-web/commit/85296109caa8dc8b372d5f121a417c19319f2b8b
ORDER BY i.longName LIMIT 50`;
const onSearch = data => (items.value = data || []);