forked from Yara724/api
YARA-908
This commit is contained in:
@@ -2304,6 +2304,15 @@ export class ExpertClaimService {
|
||||
return await this.branchDbService.findAll(insuranceId);
|
||||
}
|
||||
|
||||
/**
|
||||
* V2: branches for the damage expert's insurer tenant (JWT `clientKey`).
|
||||
* Same data as v1 `GET expert-claim/branches/:insuranceId` without passing client id.
|
||||
*/
|
||||
async retrieveInsuranceBranchesV2(actor: { clientKey?: string }) {
|
||||
const clientKey = requireActorClientKey(actor);
|
||||
return await this.branchDbService.findAll(clientKey);
|
||||
}
|
||||
|
||||
private globalErrHandler(error) {
|
||||
this.logger.error(error.response?.responseCode, error.response);
|
||||
throw new HttpException(error.response, error.claimStatus);
|
||||
|
||||
Reference in New Issue
Block a user