Rename DispatchCtx to Dispatch (#43563)

This commit is contained in:
idafurjes
2021-12-28 17:36:22 +01:00
committed by GitHub
parent 7936c4c522
commit 8e6d6af744
107 changed files with 291 additions and 291 deletions
@@ -248,7 +248,7 @@ func (auth *AuthProxy) LoginViaLDAP() (int64, error) {
SignupAllowed: auth.cfg.LDAPAllowSignup,
ExternalUser: extUser,
}
if err := bus.DispatchCtx(auth.ctx.Req.Context(), upsert); err != nil {
if err := bus.Dispatch(auth.ctx.Req.Context(), upsert); err != nil {
return 0, err
}
@@ -305,7 +305,7 @@ func (auth *AuthProxy) LoginViaHeader() (int64, error) {
ExternalUser: extUser,
}
err := bus.DispatchCtx(auth.ctx.Req.Context(), upsert)
err := bus.Dispatch(auth.ctx.Req.Context(), upsert)
if err != nil {
return 0, err
}
@@ -334,7 +334,7 @@ func (auth *AuthProxy) GetSignedInUser(userID int64) (*models.SignedInUser, erro
UserId: userID,
}
if err := bus.DispatchCtx(context.Background(), query); err != nil {
if err := bus.Dispatch(context.Background(), query); err != nil {
return nil, err
}