fix: flow when sumsub process is restarted (#1734)
This commit is contained in:
parent
d516a62448
commit
dab295815c
1 changed files with 1 additions and 0 deletions
|
|
@ -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