commit
9edf3e7251
4 changed files with 8 additions and 2 deletions
|
|
@ -898,6 +898,10 @@ function plugins (settings, deviceId) {
|
|||
return walletScoring.rateAddress(settings, cryptoCode, address)
|
||||
}
|
||||
|
||||
function rateTransaction (cryptoCode, address) {
|
||||
return walletScoring.rateTransaction(settings, cryptoCode, address)
|
||||
}
|
||||
|
||||
function isWalletScoringEnabled (tx) {
|
||||
return walletScoring.isWalletScoringEnabled(settings, tx.cryptoCode)
|
||||
}
|
||||
|
|
@ -934,6 +938,7 @@ function plugins (settings, deviceId) {
|
|||
notifyOperator,
|
||||
pruneMachinesHeartbeat,
|
||||
rateAddress,
|
||||
rateTransaction,
|
||||
isWalletScoringEnabled,
|
||||
probeLN,
|
||||
buildAvailableUnits
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ const getApplicantStatus = (account, userId) => {
|
|||
if (levelName !== account.applicantLevel) return { level: account.applicantLevel, answer: RETRY }
|
||||
|
||||
let answer = PENDING
|
||||
if (reviewStatus === 'init') answer = RETRY
|
||||
if (reviewAnswer === 'GREEN' && reviewStatus === 'completed') answer = APPROVED
|
||||
if (reviewAnswer === 'RED' && reviewRejectType === 'RETRY') answer = RETRY
|
||||
if (reviewAnswer === 'RED' && reviewRejectType === 'FINAL') answer = REJECTED
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue