Skip to content

Commit

Permalink
[NOTASK] add sumSubVideo type
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick1712 committed Jan 6, 2025
1 parent 09c84e9 commit 85412ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/subdomains/generic/kyc/services/kyc-admin.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class KycAdminService {

async triggerVideoIdentInternal(userData: UserData): Promise<void> {
try {
await this.kycService.getOrCreateStepInternal(userData.kycHash, KycStepName.IDENT, KycStepType.VIDEO);
await this.kycService.getOrCreateStepInternal(userData.kycHash, KycStepName.IDENT, KycStepType.SUMSUB_VIDEO);
} catch (e) {
this.logger.error(`Failed to trigger video ident internal for userData ${userData.id}:`, e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ export class UserDataService {
const customIdent = await this.customIdentMethod(userData.id);
const isVipUser = await this.hasRole(userData.id, UserRole.VIP);

return isVipUser ? KycStepType.VIDEO : customIdent ?? (defaultIdent as KycStepType);
return isVipUser ? KycStepType.SUMSUB_VIDEO : customIdent ?? (defaultIdent as KycStepType);
}

private async customIdentMethod(userDataId: number): Promise<KycStepType | undefined> {
Expand Down

0 comments on commit 85412ed

Please sign in to comment.