Skip synchronizing transactions to Anrok if missing payment intent ID (#4446)

* Skip succeeded txns with no payment platform ID

* chore: query cache, clippy, fmt
This commit is contained in:
François-Xavier Talbot
2025-09-30 15:36:41 +01:00
committed by GitHub
parent 895b040ad7
commit beb1bdb31f
2 changed files with 3 additions and 2 deletions

View File

@@ -351,6 +351,7 @@ impl DBCharge {
WHERE
status = 'succeeded'
AND tax_platform_id IS NULL
AND payment_platform_id IS NOT NULL
ORDER BY due ASC
FOR NO KEY UPDATE SKIP LOCKED
LIMIT $1