forked from Yara724/api
Fix workflow steps
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user