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

View File

@@ -43,7 +43,7 @@ func resetPasswordCommand(c utils.CommandLine, sqlStore *sqlstore.SQLStore) erro
userQuery := models.GetUserByIdQuery{Id: AdminUserId}
if err := bus.DispatchCtx(context.Background(), &userQuery); err != nil {
if err := bus.Dispatch(context.Background(), &userQuery); err != nil {
return fmt.Errorf("could not read user from database. Error: %v", err)
}
@@ -57,7 +57,7 @@ func resetPasswordCommand(c utils.CommandLine, sqlStore *sqlstore.SQLStore) erro
NewPassword: passwordHashed,
}
if err := bus.DispatchCtx(context.Background(), &cmd); err != nil {
if err := bus.Dispatch(context.Background(), &cmd); err != nil {
return errutil.Wrapf(err, "failed to update user password")
}