Merge pull request #1464 from chaotixkilla/fix-cash-out-transaction-history-fetching

Fix customer cash-out transaction history fetching
This commit is contained in:
Rafael Taranto 2022-12-06 18:47:33 +00:00 committed by GitHub
commit 8daa2a0585

View file

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