Skip to content

Commit

Permalink
fix: notification summary
Browse files Browse the repository at this point in the history
don't count failed notifications that have reached max attempts as
Pending
  • Loading branch information
adityathebe authored and moshloop committed Sep 17, 2024
1 parent 339c791 commit 79dd66d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion views/015_job_history.sql
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ FROM
LEFT JOIN notification_send_summary ON notifications.id = notification_send_summary.notification_id
LEFT JOIN event_queue ON
notifications.id::TEXT = event_queue.properties->>'notification_id' AND
event_queue.name = 'notification.send'
event_queue.name = 'notification.send' AND
event_queue.attempts < 4
WHERE
notifications.deleted_at IS NULL
GROUP BY notifications.id,
Expand Down

0 comments on commit 79dd66d

Please sign in to comment.