1
0
forked from Yara724/api

Merge pull request 'Fixed step for car-capture video' (#72) from s.yahyaee/yara724-api:main into main

Reviewed-on: Yara724/api#72
This commit is contained in:
2026-05-17 15:39:58 +03:30

View File

@@ -5382,9 +5382,9 @@ export class ClaimRequestManagementService {
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(
`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}`,
);
}