Remove bus from sqlstore (#45199)

This commit is contained in:
idafurjes
2022-02-10 09:21:41 +01:00
committed by GitHub
parent c7a5d2c5c7
commit 88cf2da12e

View File

@@ -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
}