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

@ -62,6 +62,7 @@ function batch (
AND ($11 is null or txs.crypto_code = $11)
AND ($12 is null or txs.to_address = $12)
AND ($13 is null or txs.txStatus = $13)
AND (fiat > 0)
ORDER BY created DESC limit $4 offset $5`
const cashOutSql = `SELECT 'cashOut' AS tx_class,
@ -90,6 +91,7 @@ function batch (
AND ($11 is null or txs.crypto_code = $11)
AND ($12 is null or txs.to_address = $12)
AND ($13 is null or txs.txStatus = $13)
AND (fiat > 0)
ORDER BY created DESC limit $4 offset $5`
return Promise.all([