diff --git a/lib/cash-in/cash-in-tx.js b/lib/cash-in/cash-in-tx.js index 562fbffb..0e7b71ef 100644 --- a/lib/cash-in/cash-in-tx.js +++ b/lib/cash-in/cash-in-tx.js @@ -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) }