diff --git a/lib/tx.js b/lib/tx.js index ca2e7333..b35fccdd 100644 --- a/lib/tx.js +++ b/lib/tx.js @@ -69,6 +69,7 @@ function customerHistory (customerId, thresholdDays) { FROM cash_in_txs txIn WHERE txIn.customer_id = $1 AND txIn.created > now() - interval $2 + AND fiat > 0 UNION SELECT txOut.id, txOut.created, txOut.fiat, 'cashOut' AS direction FROM cash_out_txs txOut