forked from Yara724/api
Disabled Inquiry
This commit is contained in:
@@ -750,12 +750,12 @@ export class RequestManagementService {
|
||||
let inquiryRaw: any;
|
||||
let inquiryMapped: any;
|
||||
try {
|
||||
// const inquiry = await this.sandHubService.getTejaratBlockInquiry({
|
||||
// plate: body.plate,
|
||||
// nationalCodeOfInsurer: body.nationalCodeOfInsurer,
|
||||
// });
|
||||
// inquiryRaw = inquiry.raw;
|
||||
// inquiryMapped = inquiry.mapped;
|
||||
const inquiry = await this.sandHubService.getTejaratBlockInquiry({
|
||||
plate: body.plate,
|
||||
nationalCodeOfInsurer: body.nationalCodeOfInsurer,
|
||||
});
|
||||
inquiryRaw = inquiry.raw;
|
||||
inquiryMapped = inquiry.mapped;
|
||||
this.logger.log(
|
||||
`[TEJARAT] block inquiry raw for request=${req._id}: ${JSON.stringify(inquiryRaw)}`,
|
||||
);
|
||||
@@ -1664,10 +1664,10 @@ export class RequestManagementService {
|
||||
// TODO: Activate
|
||||
// --- Proceed with existing logic if the check passes ---
|
||||
// 1) Main third-party/block inquiry (existing behavior)
|
||||
// const sanHubResponse = await this.sandHubService.getSandHubResponse({
|
||||
// plate: body.plate,
|
||||
// nationalCodeOfInsurer: body.nationalCodeOfInsurer,
|
||||
// });
|
||||
const sanHubResponse = await this.sandHubService.getSandHubResponse({
|
||||
plate: body.plate,
|
||||
nationalCodeOfInsurer: body.nationalCodeOfInsurer,
|
||||
});
|
||||
|
||||
// if (sanHubResponse.Error) {
|
||||
// throw new HttpException(
|
||||
@@ -1696,13 +1696,13 @@ export class RequestManagementService {
|
||||
// );
|
||||
// }
|
||||
|
||||
// return await this.addPlate(
|
||||
// sanHubResponse,
|
||||
// request,
|
||||
// user,
|
||||
// body,
|
||||
// isFirstParty ? "firstParty" : "secondParty",
|
||||
// );
|
||||
return await this.addPlate(
|
||||
sanHubResponse,
|
||||
request,
|
||||
user,
|
||||
body,
|
||||
isFirstParty ? "firstParty" : "secondParty",
|
||||
);
|
||||
}
|
||||
|
||||
async carBodyFormStep(
|
||||
|
||||
Reference in New Issue
Block a user