feat: filter by txs with fiat lt 0

This commit is contained in:
José Oliveira 2021-07-22 19:10:00 +01:00 committed by Josh Harvey
parent 2040c388b8
commit 56fc312520
2 changed files with 3 additions and 1 deletions

View file

@ -74,7 +74,7 @@ function customerHistory (customerId, thresholdDays) {
FROM cash_out_txs txOut
WHERE txOut.customer_id = $1
AND txOut.created > now() - interval $2
AND (timedout = true OR error_code != 'operatorCancel')
AND (timedout = true OR error_code != 'operatorCancel' OR fiat > 0)
ORDER BY created;`
const days = _.isNil(thresholdDays) ? 0 : thresholdDays