Skip to content

Commit

Permalink
fix: increase dedup window for unsent notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Nov 20, 2024
1 parent 003940e commit 7243b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notification/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 7243b8a

Please sign in to comment.