fix: deprecate cashInFeeCrypto

This commit is contained in:
josepfo 2022-12-07 15:21:28 +00:00
parent 8daa2a0585
commit d7a5f05437
6 changed files with 16 additions and 6 deletions

View file

@ -65,7 +65,7 @@ function getOpenBatchCryptoValue (cryptoCode) {
if (_.isNil(batch)) return Promise.resolve([])
return db.any(`SELECT * FROM cash_in_txs WHERE batch_id=$1`, [batch.id])
})
.then(txs => _.reduce((acc, tx) => acc.plus(tx.cash_in_fee_crypto).plus(tx.crypto_atoms), BN(0), txs))
.then(txs => _.reduce((acc, tx) => acc.plus(tx.crypto_atoms), BN(0), txs))
}
module.exports = {