Chore: Add context to star and stats (#39591)

* Add context to star and stats

* Use WithTransactionalDbSession

* Add additional ctx

* Remove convey

* Fix star handler name

* Use WithDbSession, use DispatchCtx

* Remove xorm from star
This commit is contained in:
idafurjes
2021-09-28 17:54:45 +02:00
committed by GitHub
parent 580cdc46fc
commit b255c1b992
11 changed files with 71 additions and 67 deletions
@@ -4,6 +4,7 @@
package sqlstore
import (
"context"
"testing"
"github.com/grafana/grafana/pkg/models"
@@ -14,6 +15,6 @@ func TestIntegration_GetAdminStats(t *testing.T) {
InitTestDB(t)
query := models.GetAdminStatsQuery{}
err := GetAdminStats(&query)
err := GetAdminStats(context.Background(), &query)
require.NoError(t, err)
}