Provide hard-limit info
This commit is contained in:
parent
0d8a8547f5
commit
51ebfe6a1d
2 changed files with 18 additions and 1 deletions
|
|
@ -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]) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue