Provide hard-limit info

This commit is contained in:
goga-m 2017-08-31 15:33:59 +03:00 committed by Josh Harvey
parent 0d8a8547f5
commit 51ebfe6a1d
2 changed files with 18 additions and 1 deletions

View file

@ -24,7 +24,7 @@ function getDailyVolume (id) {
db.one(`select coalesce(sum(fiat), 0) as total from cash_in_txs
where customer_id=$1
and created > now() - interval '1 day'`, [id]),
db.one(`select COALESCE(sum(fiat), 0) as total from cash_out_txs
db.one(`select coalesce(sum(fiat), 0) as total from cash_out_txs
where customer_id=$1
and created > now() - interval '1 day'`, [id])
]).then(([cashInTotal, cashOutTotal]) => {