forked from Yara724/api
YARA-1110
This commit is contained in:
@@ -38,7 +38,6 @@ import {
|
||||
CreateClaimExpertByInsurerDto,
|
||||
CreateFileMakerByInsurerDto,
|
||||
CreateFileReviewerByInsurerDto,
|
||||
CreateFinancialExpertByInsurerDto,
|
||||
} from "./dto/create-insurer-expert.dto";
|
||||
|
||||
@Controller("expert-insurer")
|
||||
@@ -183,23 +182,6 @@ export class ExpertInsurerController {
|
||||
return this.expertInsurerService.addFileReviewer(insurer.clientKey, body);
|
||||
}
|
||||
|
||||
@Post("experts/financial-expert")
|
||||
@ApiBody({ type: CreateFinancialExpertByInsurerDto })
|
||||
@ApiOperation({
|
||||
summary: "Create a FinancialExpert account under this insurer (V5 flow)",
|
||||
description:
|
||||
"FinancialExperts are the final approvers in the V5 blame flow before fanavaran submission.",
|
||||
})
|
||||
async addFinancialExpert(
|
||||
@CurrentUser() insurer,
|
||||
@Body() body: CreateFinancialExpertByInsurerDto,
|
||||
) {
|
||||
if (!insurer) {
|
||||
throw new UnauthorizedException("Could not identify the current user.");
|
||||
}
|
||||
return this.expertInsurerService.addFinancialExpert(insurer.clientKey, body);
|
||||
}
|
||||
|
||||
@ApiQuery({ name: "page", type: Number })
|
||||
@ApiQuery({ name: "response_count", type: Number })
|
||||
@Get("experts/list")
|
||||
|
||||
Reference in New Issue
Block a user