Skip to content

Commit

Permalink
fix: manual kyb reference (#1349)
Browse files Browse the repository at this point in the history
  • Loading branch information
JP authored May 9, 2023
1 parent 14c371a commit fbc6648
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions onboarding-api/src/controllers/kyb/verifyBusiness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ export const verifyBusinessController = async (
}
}

const MANUAL_KYB_REFERENCE = `MANUAL_KYB_REQUEST_${Math.random()}`

const user: EntityUser = {
investorType: 'entity',
address: null,
kycReference: '',
manualKybReference: manualReview ? `MANUAL_KYB_REQUEST_${Math.random()}` : null,
manualKybReference: manualReview ? MANUAL_KYB_REFERENCE : null,
wallet: [wallet],
name: null,
dateOfBirth: null,
Expand Down Expand Up @@ -98,7 +100,7 @@ export const verifyBusinessController = async (
enable_extra_proofs: 1,
labels: ['proof_of_address', 'signed_and_dated_ownership_structure'],
verification_mode: 'any',
reference: `KYB_${Math.random()}`,
reference: MANUAL_KYB_REFERENCE,
email: body.email,
country: body.jurisdictionCode,
redirect_url: `${origin}/manual-kyb-redirect.html`,
Expand Down

0 comments on commit fbc6648

Please sign in to comment.