forked from Yara724/api
lookups update per client
This commit is contained in:
@@ -30,6 +30,7 @@ import {
|
||||
} from "src/helpers/unified-file-status";
|
||||
import { applyListQueryV2, isInListDateRange, parseListDateRange } from "src/helpers/list-query-v2";
|
||||
import { ClaimCaseDbService } from "src/claim-request-management/entites/db-service/claim-case.db.service";
|
||||
import { LookupsService } from "src/lookups/lookups.service";
|
||||
import { ListQueryV2Dto } from "src/common/dto/list-query-v2.dto";
|
||||
import {
|
||||
UnifiedFileStatusReportDto,
|
||||
@@ -126,6 +127,7 @@ export class ExpertBlameService {
|
||||
private readonly smsOrchestrationService: SmsOrchestrationService,
|
||||
private readonly expertFileActivityDbService: ExpertFileActivityDbService,
|
||||
private readonly claimCaseDbService: ClaimCaseDbService,
|
||||
private readonly lookupsService: LookupsService,
|
||||
) {}
|
||||
|
||||
private async loadClaimsByPublicIds(
|
||||
@@ -2424,21 +2426,7 @@ export class ExpertBlameService {
|
||||
}
|
||||
|
||||
async getAccidentField() {
|
||||
try {
|
||||
const ac_reason = await readFile(
|
||||
"src/static/ACCIDENT_REASON.json",
|
||||
"utf-8",
|
||||
);
|
||||
const ac_type = await readFile("src/static/ACCIDENT_TYPE.json", "utf-8");
|
||||
const ac_way = await readFile("src/static/ACCIDENT_WAY.json", "utf-8");
|
||||
return {
|
||||
accidentReason: JSON.parse(ac_reason),
|
||||
accidentType: JSON.parse(ac_type),
|
||||
accidentWay: JSON.parse(ac_way),
|
||||
};
|
||||
} catch (err) {
|
||||
this.logger.error(err);
|
||||
}
|
||||
return await this.lookupsService.getAccidentFields();
|
||||
}
|
||||
|
||||
async inPersonVisit(requestId: string, actorDetail: any) {
|
||||
|
||||
Reference in New Issue
Block a user