forked from Yara724/api
YARA-1117 and fixed completed status after in person visit has been called
This commit is contained in:
@@ -365,7 +365,6 @@ export class FileReviewerBlameV5Controller {
|
||||
@ApiBody({
|
||||
schema: {
|
||||
type: "object",
|
||||
required: ["file"],
|
||||
properties: { file: { type: "string", format: "binary" } },
|
||||
},
|
||||
})
|
||||
@@ -386,17 +385,19 @@ export class FileReviewerBlameV5Controller {
|
||||
@Post("upload-video/:requestId")
|
||||
@ApiParam({ name: "requestId" })
|
||||
@ApiOperation({
|
||||
summary: "Blame accident video (FileReviewer final step — V5)",
|
||||
summary: "Blame accident video (FileReviewer final step — V5, optional)",
|
||||
description:
|
||||
"Last step of the V5 FileReviewer flow. Requires claim walk-around video and completed capture. " +
|
||||
"Sets blame status to WAITING_FOR_FINANCIAL_EXPERT (pending FinancialExpert approval).",
|
||||
"File is optional — omit it to complete the blame without attaching a video.",
|
||||
})
|
||||
async uploadBlameVideo(
|
||||
@Param("requestId") requestId: string,
|
||||
@CurrentUser() fileReviewer: any,
|
||||
@UploadedFile() file: Express.Multer.File,
|
||||
) {
|
||||
await this.mediaPolicyService.assertForBlame(file, requestId, "video");
|
||||
if (file) {
|
||||
await this.mediaPolicyService.assertForBlame(file, requestId, "video");
|
||||
}
|
||||
return this.requestManagementService.expertUploadBlameVideoV5(
|
||||
fileReviewer,
|
||||
requestId,
|
||||
|
||||
Reference in New Issue
Block a user