From 17e3cc11c7da9e439f100470ca7b6edfed276660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Tue, 6 Dec 2022 01:18:44 +0000 Subject: [PATCH] fix: cash-out transaction history fetching when error_code value was null --- lib/tx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`