fix: add missing return statement
This commit is contained in:
parent
16554951a1
commit
0a62589d1e
1 changed files with 3 additions and 3 deletions
|
|
@ -26,7 +26,7 @@ case
|
|||
end`
|
||||
|
||||
module.exports = { post, monitorPending, cancel, PENDING_INTERVAL, TRANSACTION_STATES }
|
||||
// TODO: cash-in wallet score is not recorded in db
|
||||
|
||||
function post (machineTx, pi) {
|
||||
logger.silly('Updating cashin tx:', machineTx)
|
||||
return cashInAtomic.atomic(machineTx, pi)
|
||||
|
|
@ -180,9 +180,9 @@ function doesTxReuseAddress (tx) {
|
|||
}
|
||||
|
||||
function getWalletScore (tx, pi) {
|
||||
pi.isWalletScoringEnabled(tx)
|
||||
return pi.isWalletScoringEnabled(tx)
|
||||
.then(isEnabled => {
|
||||
if(!isEnabled) return null
|
||||
if (!isEnabled) return null
|
||||
if (!tx.fiat || tx.fiat.isZero()) {
|
||||
return pi.rateWallet(tx.cryptoCode, tx.toAddress)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue