forked from Yara724/api
Merge pull request 'YARA-1181' (#229) from s.yahyaee/yara724-api:main into main
Reviewed-on: Yara724/api#229
This commit is contained in:
@@ -10467,6 +10467,25 @@ export class RequestManagementService {
|
|||||||
"workflow.nextStep": ClaimWorkflowStep.EXPERT_DAMAGE_ASSESSMENT,
|
"workflow.nextStep": ClaimWorkflowStep.EXPERT_DAMAGE_ASSESSMENT,
|
||||||
"workflow.locked": false,
|
"workflow.locked": false,
|
||||||
},
|
},
|
||||||
|
// Clear all stale lock fields and prior-cycle evaluation data so the
|
||||||
|
// FileReviewer starts a completely clean lock cycle:
|
||||||
|
// - workflow lock fields left over from the completed review cycle
|
||||||
|
// - damageExpertReply / damageExpertResend / ownerInsurerApproval /
|
||||||
|
// ownerPricedPartsApproval — all belong to the rejected cycle and
|
||||||
|
// must not bleed into the new one (resend fulfilledAt would block
|
||||||
|
// submitResendDocsV2; stale reply would mislead the frontend)
|
||||||
|
// - assignedForReviewBy is intentionally kept so the same reviewer
|
||||||
|
// is still scoped to this file on re-lock
|
||||||
|
$unset: {
|
||||||
|
"workflow.lockedAt": "",
|
||||||
|
"workflow.expiredAt": "",
|
||||||
|
"workflow.lockedBy": "",
|
||||||
|
"workflow.preLockQueueSnapshot": "",
|
||||||
|
"evaluation.damageExpertReply": "",
|
||||||
|
"evaluation.damageExpertResend": "",
|
||||||
|
"evaluation.ownerInsurerApproval": "",
|
||||||
|
"evaluation.ownerPricedPartsApproval": "",
|
||||||
|
},
|
||||||
$push: {
|
$push: {
|
||||||
history: {
|
history: {
|
||||||
type: "V5_FILE_MAKER_REJECTED",
|
type: "V5_FILE_MAKER_REJECTED",
|
||||||
|
|||||||
Reference in New Issue
Block a user