Skip to content

Commit

Permalink
Merge pull request #6982 from ORCID/ExcludeNotificationCreatedMoreTha…
Browse files Browse the repository at this point in the history
…n4MonthsAgo

Exclude notifications created more than 4 months ago
  • Loading branch information
amontenegro authored Feb 1, 2024
2 parents 1b79703 + ae02a67 commit 3da02b7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
query = "SELECT DISTINCT(n.orcid), COALESCE(p.completed_date, p.date_created)" +
" FROM notification n, email_frequency f, profile p " +
" WHERE n.sent_date IS NULL " +
" AND n.date_created > now() - INTERVAL '4' MONTH" +
" AND n.archived_date IS NULL " +
" AND n.orcid = p.orcid " +
" AND p.claimed = true " +
Expand Down

0 comments on commit 3da02b7

Please sign in to comment.