1
0
forked from Yara724/api

Merge pull request 'Fix CAR_GREEN_CARD upload error' (#161) from s.yahyaee/yara724-api:main into main

Reviewed-on: Yara724/api#161
This commit is contained in:
2026-06-28 16:59:44 +03:30

View File

@@ -6254,11 +6254,6 @@ export class ClaimRequestManagementService {
); );
} }
if (options?.v3InPersonFlow) { if (options?.v3InPersonFlow) {
if (body.documentKey === ClaimRequiredDocumentType.CAR_GREEN_CARD) {
throw new BadRequestException(
"Car green card must be uploaded during other-parts selection, not in the documents step.",
);
}
if ( if (
step === ClaimWorkflowStep.UPLOAD_REQUIRED_DOCUMENTS && step === ClaimWorkflowStep.UPLOAD_REQUIRED_DOCUMENTS &&
isCapturePhaseDamagedPartyDocKey(body.documentKey) isCapturePhaseDamagedPartyDocKey(body.documentKey)