Chore: Remove bus from contexthandler (#47458) (#47636)

* Chore: remove bus from contexthandler

* remove bus from orgredirect

(cherry picked from commit 2cf88cfec8)

Co-authored-by: Serge Zaitsev <serge.zaitsev@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2022-04-12 22:31:53 +02:00
committed by GitHub
co-authored by Serge Zaitsev
parent d6b166223f
commit 5721ff9689
12 changed files with 44 additions and 23 deletions
+3 -2
View File
@@ -44,7 +44,8 @@ type SQLStoreMock struct {
ExpectedUserStars map[int64]bool
ExpectedLoginAttempts int64
ExpectedError error
ExpectedError error
ExpectedSetUsingOrgError error
}
func NewSQLStoreMock() *SQLStoreMock {
@@ -178,7 +179,7 @@ func (m *SQLStoreMock) UpdateUserLastSeenAt(ctx context.Context, cmd *models.Upd
}
func (m *SQLStoreMock) SetUsingOrg(ctx context.Context, cmd *models.SetUsingOrgCommand) error {
return m.ExpectedError
return m.ExpectedSetUsingOrgError
}
func (m *SQLStoreMock) GetUserProfile(ctx context.Context, query *models.GetUserProfileQuery) error {