Update tax change notification timings (#4706)

This commit is contained in:
François-Xavier Talbot
2025-11-03 14:15:16 -08:00
committed by GitHub
parent 17f395ee55
commit 92698e4bb5
2 changed files with 3 additions and 3 deletions

View File

@@ -337,7 +337,7 @@ impl DBCharge {
status = 'open'
AND COALESCE(tax_last_updated, '-infinity' :: TIMESTAMPTZ) < NOW() - INTERVAL '1 day'
AND u.email IS NOT NULL
AND due - INTERVAL '7 days' > NOW()
AND due - INTERVAL '2 days' > NOW()
AND due - INTERVAL '30 days' < NOW() -- Due between 7 and 30 days from now
ORDER BY COALESCE(tax_last_updated, '-infinity' :: TIMESTAMPTZ) ASC
FOR NO KEY UPDATE SKIP LOCKED