Adjust some values in tax-related tasks (#4598)

* Adjust some values for tax processing

* chore: query cache, clippy, fmt
This commit is contained in:
François-Xavier Talbot
2025-10-21 16:55:54 +01:00
committed by GitHub
parent a4015d9df3
commit f375913c62
3 changed files with 6 additions and 14 deletions

View File

@@ -338,7 +338,7 @@ impl DBCharge {
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 '14 days' < NOW() -- Due between 7 and 14 days from 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
LIMIT $1