From 88cf2da12e6e383348474e134069693f2692d103 Mon Sep 17 00:00:00 2001 From: idafurjes <36131195+idafurjes@users.noreply.github.com> Date: Thu, 10 Feb 2022 09:21:41 +0100 Subject: [PATCH] Remove bus from sqlstore (#45199) --- pkg/services/sqlstore/alert_notification.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }