From 7c2131fe2475aaf1357cf242f8b4eac7228042b1 Mon Sep 17 00:00:00 2001 From: kekskurse Date: Tue, 26 Aug 2025 12:59:30 +0200 Subject: [PATCH] feat: send to multiple notification channels if they have the same name --- main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.go b/main.go index d63d008..2785e32 100644 --- a/main.go +++ b/main.go @@ -65,13 +65,11 @@ func executeJob(t time.Time, job jobconfig, c config) { if err != nil { log.Err(err).Msg("Error while Execute command") } - nc := notificationConfig{} for _, n := range c.Notification { if n.Name == job.Notification { - nc = n + sendNotification(result, n) } } - sendNotification(result, nc) } func sendNotification(result jobResult, notification notificationConfig) error {