mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Remove bus from sqlstore (#45199)
This commit is contained in:
@@ -68,7 +68,7 @@ func (ss *SQLStore) DeleteAlertNotificationWithUid(ctx context.Context, cmd *mod
|
||||
Id: existingNotification.Result.Id,
|
||||
OrgId: existingNotification.Result.OrgId,
|
||||
}
|
||||
if err := bus.Dispatch(ctx, deleteCommand); err != nil {
|
||||
if err := ss.DeleteAlertNotification(ctx, deleteCommand); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -474,7 +474,7 @@ func (ss *SQLStore) UpdateAlertNotificationWithUid(ctx context.Context, cmd *mod
|
||||
OrgId: cmd.OrgId,
|
||||
}
|
||||
|
||||
if err := bus.Dispatch(ctx, updateNotification); err != nil {
|
||||
if err := ss.UpdateAlertNotification(ctx, updateNotification); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user