diff --git a/cmd/main_test.go b/cmd/main_test.go index c9a2937b..70b2d43d 100644 --- a/cmd/main_test.go +++ b/cmd/main_test.go @@ -85,7 +85,7 @@ func TestRunAll(t *testing.T) { t.Run(dbt+" Select Core", func(t *testing.T) { RunSelectCoreMYQL(t, dbt) }) - t.Run(dbt+" Select DbServices", func(t *testing.T) { + t.Run(dbt+" Select Services", func(t *testing.T) { RunSelectAllMysqlServices(t) }) t.Run(dbt+" Select Comms", func(t *testing.T) { diff --git a/core/services.go b/core/services.go index 692815a9..0fddc0b9 100644 --- a/core/services.go +++ b/core/services.go @@ -49,7 +49,7 @@ func SelectService(id int64) *Service { func (c *Core) SelectAllServices() ([]*types.Service, error) { var services []*types.Service var servs []*types.Service - col := serviceCol().Find().OrderBy("order") + col := serviceCol().Find().OrderBy("order_id") err := col.All(&services) if err != nil { utils.Log(3, fmt.Sprintf("service error: %v", err))