Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

feat: filter items with parents on homepage (#127)

Hayden592d4eda5529
diff --git a/backend/internal/data/repo/repo_locations.go b/backend/internal/data/repo/repo_locations.go
index 394a7571..f7d63eb7 100644
--- a/backend/internal/data/repo/repo_locations.go
+++ b/backend/internal/data/repo/repo_locations.go
@@ -112,6 +112,7 @@ func (r *LocationRepository) GetAll(ctx context.Context, groupId uuid.UUID) ([]L
locations
WHERE
locations.group_locations = ?
+ AND locations.location_children IS NULL
ORDER BY
locations.name ASC
`