forked from Yara724/api
v4 bug fixed
This commit is contained in:
@@ -9288,12 +9288,11 @@ export class RequestManagementService {
|
||||
fresh.workflow.currentStep = WorkflowStep.FIRST_INVITE_SECOND;
|
||||
fresh.workflow.nextStep = WorkflowStep.SECOND_INITIAL_FORM;
|
||||
} else {
|
||||
// CAR_BODY: FileMaker is done — seal the file for FileReviewer pickup
|
||||
// CAR_BODY: FileMaker's narrative is done — move to document-upload step.
|
||||
// blame.status transitions to WAITING_FOR_FILE_REVIEWER only after the
|
||||
// FileMaker completes all document uploads, not here at sign time.
|
||||
fresh.workflow.currentStep = WorkflowStep.FIRST_COMPLETED;
|
||||
fresh.workflow.nextStep = WorkflowStep.WAITING_FOR_GUILT_DECISION;
|
||||
if (isFileMakerActor) {
|
||||
fresh.status = CaseStatus.WAITING_FOR_FILE_REVIEWER;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.pushWorkflowSteps(fresh, [
|
||||
@@ -9305,10 +9304,8 @@ export class RequestManagementService {
|
||||
]);
|
||||
fresh.workflow.currentStep = WorkflowStep.SECOND_COMPLETED;
|
||||
fresh.workflow.nextStep = WorkflowStep.WAITING_FOR_GUILT_DECISION;
|
||||
// THIRD_PARTY: second party sign is FileMaker's last step — seal for FileReviewer
|
||||
if (isFileMakerActor) {
|
||||
fresh.status = CaseStatus.WAITING_FOR_FILE_REVIEWER;
|
||||
}
|
||||
// blame.status transitions to WAITING_FOR_FILE_REVIEWER only after the
|
||||
// FileMaker completes all document uploads, not here at sign time.
|
||||
}
|
||||
await (fresh as any).save();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user