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

This commit is contained in:
Hayden 2022-11-01 15:10:30 -08:00 committed by GitHub
parent 2fb5a437a2
commit 592d4eda55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,6 +112,7 @@ func (r *LocationRepository) GetAll(ctx context.Context, groupId uuid.UUID) ([]L
locations locations
WHERE WHERE
locations.group_locations = ? locations.group_locations = ?
AND locations.location_children IS NULL
ORDER BY ORDER BY
locations.name ASC locations.name ASC
` `