fix: cash-out transaction history fetching when error_code value was null
This commit is contained in:
parent
f6550c9921
commit
17e3cc11c7
1 changed files with 1 additions and 1 deletions
|
|
@ -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`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue