fix: btc batching methods
This commit is contained in:
parent
e1751c8576
commit
384b3153a2
2 changed files with 4 additions and 3 deletions
|
|
@ -48,6 +48,7 @@ function setErroredBatch (batch, errorMsg) {
|
|||
function getBatchTransactions (batch) {
|
||||
const sql = `SELECT * FROM cash_in_txs WHERE batch_id=$1`
|
||||
return db.manyOrNone(sql, [batch.id])
|
||||
.then(res => _.map(_.mapKeys(_.camelCase), res))
|
||||
}
|
||||
|
||||
function getBatchesByStatus (statuses) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue