refactor: simplify rate function
This commit is contained in:
parent
ea92fa5c6d
commit
a55388d290
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ const TYPE = {
|
|||
}
|
||||
|
||||
function rate (account, objectType, cryptoCode, objectId) {
|
||||
if (_.isNil(account) || !account.enabled || !Object.keys(SUPPORTED_COINS).includes(cryptoCode)) return Promise.resolve(null)
|
||||
if (!isWalletScoringEnabled(account, cryptoCode)) return Promise.resolve(null)
|
||||
|
||||
const threshold = account.scoreThreshold
|
||||
const payload = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue