fix: migrate old error codes

This commit is contained in:
Rafael Taranto 2024-05-29 10:33:03 +01:00
parent 501da5f54a
commit ea92fa5c6d
4 changed files with 16 additions and 7 deletions

View file

@ -82,7 +82,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', 'ciphertraceError'))
AND (error_code IS NULL OR error_code NOT IN ('operatorCancel', 'scoreThresholdReached', 'walletScoringError'))
AND fiat > 0
) ch WHERE NOT ch.expired ORDER BY ch.created`