Chore: Remove result field from alert commands and queries (#62714)
* remove result field from alert notification commands and queries * fix a few more tests * ok, linter * remove alert result fields * fix api calls * et tu, linter
This commit is contained in:
@@ -92,10 +92,10 @@ func TestAlertRuleModel(t *testing.T) {
|
||||
})
|
||||
|
||||
firstNotification := models.CreateAlertNotificationCommand{Uid: "notifier1", OrgId: 1, Name: "1"}
|
||||
err := sqlStore.CreateAlertNotificationCommand(context.Background(), &firstNotification)
|
||||
_, err := sqlStore.CreateAlertNotificationCommand(context.Background(), &firstNotification)
|
||||
require.Nil(t, err)
|
||||
secondNotification := models.CreateAlertNotificationCommand{Uid: "notifier2", OrgId: 1, Name: "2"}
|
||||
err = sqlStore.CreateAlertNotificationCommand(context.Background(), &secondNotification)
|
||||
_, err = sqlStore.CreateAlertNotificationCommand(context.Background(), &secondNotification)
|
||||
require.Nil(t, err)
|
||||
|
||||
t.Run("Testing alert rule with notification id and uid", func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user