You've already forked AstralRinth
forked from didirus/AstralRinth
Update tax change notification timings (#4706)
This commit is contained in:
committed by
GitHub
parent
17f395ee55
commit
92698e4bb5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user