1
0
forked from Yara724/api

Fix workflow steps

This commit is contained in:
2026-05-01 16:01:08 +03:30
parent d9dc4ecdff
commit 0bb13f4596
5 changed files with 123 additions and 41 deletions

View File

@@ -2546,8 +2546,8 @@ export class ExpertClaimService {
};
const nextStep = needsFactorUpload
? ClaimWorkflowStep.EXPERT_COST_EVALUATION
: ClaimWorkflowStep.INSURER_REVIEW;
? ClaimWorkflowStep.INSURER_REVIEW
: ClaimWorkflowStep.CLAIM_COMPLETED;
const nextCaseStatus = ClaimCaseStatus.WAITING_FOR_INSURER_APPROVAL;
const nextClaimStatus = needsFactorUpload
@@ -2566,7 +2566,7 @@ export class ExpertClaimService {
},
'workflow.currentStep': nextStep,
'workflow.nextStep': needsFactorUpload
? ClaimWorkflowStep.INSURER_REVIEW
? ClaimWorkflowStep.EXPERT_COST_EVALUATION
: ClaimWorkflowStep.CLAIM_COMPLETED,
[`evaluation.${replyField}`]: replyPayload,
$push: {