feat: operator cancel no longer adds to compliance

This commit is contained in:
Rafael Taranto 2025-02-21 14:42:12 +00:00
parent 48eb658c20
commit e1867d1cb0

View file

@ -85,7 +85,7 @@ function customerHistory (customerId, thresholdDays) {
FROM cash_out_txs txOut
WHERE txOut.customer_id = $1
AND txOut.created > now() - interval $2
AND (error_code IS NULL OR error_code NOT IN ('operatorCancel', 'scoreThresholdReached', 'walletScoringError'))
AND (error_code IS NULL OR error_code NOT IN ('scoreThresholdReached', 'walletScoringError'))
AND fiat > 0
) ch WHERE NOT ch.expired ORDER BY ch.created`