diff --git a/lib/tx.js b/lib/tx.js index 3061be4a..6279077d 100644 --- a/lib/tx.js +++ b/lib/tx.js @@ -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`