fix: undefined variable

This commit is contained in:
siiky 2022-12-16 16:58:33 +00:00 committed by Rafael
parent 4793b2a415
commit 7f2651fa9e

View file

@ -60,7 +60,6 @@ function post (machineTx, pi) {
addressReuse = true addressReuse = true
} }
return postProcess(r, pi, isBlacklisted, addressReuse, walletScore) return postProcess(r, pi, isBlacklisted, addressReuse, walletScore)
})
.then(changes => _.set('walletScore', _.isNil(walletScore) ? null : walletScore.score, changes)) .then(changes => _.set('walletScore', _.isNil(walletScore) ? null : walletScore.score, changes))
.then(changes => cashInLow.update(db, updatedTx, changes)) .then(changes => cashInLow.update(db, updatedTx, changes))
.then(tx => _.set('bills', machineTx.bills, tx)) .then(tx => _.set('bills', machineTx.bills, tx))
@ -69,6 +68,7 @@ function post (machineTx, pi) {
.then(tx => _.set('addressReuse', addressReuse, tx)) .then(tx => _.set('addressReuse', addressReuse, tx))
.then(tx => _.set('validWalletScore', _.isNil(walletScore) ? true : walletScore.isValid, tx)) .then(tx => _.set('validWalletScore', _.isNil(walletScore) ? true : walletScore.isValid, tx))
}) })
})
} }
function registerTrades (pi, r) { function registerTrades (pi, r) {