Fixed step for car-capture video

This commit is contained in:
SepehrYahyaee
2026-05-17 15:39:23 +03:30
parent 129be58cc9
commit 600c6bd7ed

View File

@@ -5382,9 +5382,9 @@ export class ClaimRequestManagementService {
throw new BadRequestException('Video file is required.'); throw new BadRequestException('Video file is required.');
} }
if (claimCase.workflow?.currentStep !== ClaimWorkflowStep.CAPTURE_PART_DAMAGES) { if (claimCase.workflow?.currentStep !== ClaimWorkflowStep.UPLOAD_REQUIRED_DOCUMENTS) {
throw new BadRequestException( throw new BadRequestException(
`Invalid workflow step. Expected ${ClaimWorkflowStep.CAPTURE_PART_DAMAGES}, but current step is ${claimCase.workflow?.currentStep}`, `Invalid workflow step. Expected ${ClaimWorkflowStep.UPLOAD_REQUIRED_DOCUMENTS}, but current step is ${claimCase.workflow?.currentStep}`,
); );
} }