diff --git a/pkg/services/sqlstore/alert_notification.go b/pkg/services/sqlstore/alert_notification.go index 043bd57545a..b7d536d765e 100644 --- a/pkg/services/sqlstore/alert_notification.go +++ b/pkg/services/sqlstore/alert_notification.go @@ -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 }