Order campsite type’s index by name
This commit is contained in:
parent
208952b964
commit
114c6e6212
|
@ -87,7 +87,7 @@ type typeEntry struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func collectTypeEntries(ctx context.Context, company *auth.Company, conn *database.Conn) ([]*typeEntry, error) {
|
func collectTypeEntries(ctx context.Context, company *auth.Company, conn *database.Conn) ([]*typeEntry, error) {
|
||||||
rows, err := conn.Query(ctx, "select slug, name, active from campsite_type where company_id = $1", company.ID)
|
rows, err := conn.Query(ctx, "select slug, name, active from campsite_type where company_id = $1 order by name", company.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue