From 7243b8a8ccef274f926f2d7e2bc9cf25032e8c43 Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Wed, 20 Nov 2024 15:43:13 +0545 Subject: [PATCH] fix: increase dedup window for unsent notifications --- notification/events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notification/events.go b/notification/events.go index 4a4c2369..402b5db5 100644 --- a/notification/events.go +++ b/notification/events.go @@ -202,7 +202,7 @@ func addNotificationEvent(ctx context.Context, id string, celEnv map[string]any, SourceEvent: event.Name, Status: models.NotificationStatusSilenced, } - if err := db.SaveUnsentNotificationToHistory(ctx, history, time.Minute); err != nil { + if err := db.SaveUnsentNotificationToHistory(ctx, history, ctx.Properties().Duration("notifications.dedup.window", time.Hour*24)); err != nil { return fmt.Errorf("failed to save silenced notification history: %w", err) }