mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 05:12:29 +08:00
Chore: Remove Dispatch and AddHandler (#42603)
* Remove Dispatch * Remove context.TODO() * Remove AddHandler and Dispatch
This commit is contained in:
@ -57,7 +57,7 @@ func resetPasswordCommand(c utils.CommandLine, sqlStore *sqlstore.SQLStore) erro
|
||||
NewPassword: passwordHashed,
|
||||
}
|
||||
|
||||
if err := bus.Dispatch(&cmd); err != nil {
|
||||
if err := bus.DispatchCtx(context.Background(), &cmd); err != nil {
|
||||
return errutil.Wrapf(err, "failed to update user password")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user