forked from Shared/esg
some error handler + error validation + realEstate bug fixed for hamta end moallem
This commit is contained in:
@@ -28,6 +28,7 @@ import { GenericInquiryResponseDto } from './dto/generic-inquiry-response.dto';
|
||||
import { PostalCodeRequestDto } from './dto/postal-code-request.dto';
|
||||
import { ShahkarRequestDto } from './dto/shahkar-request.dto';
|
||||
import { SayahRequestDto } from './dto/sayah-request.dto';
|
||||
import { RealEstateRequestDto } from './dto/real-estate-request.dto';
|
||||
import { PolicyByChassisRequestDto } from './dto/policy-by-chassis-request.dto';
|
||||
import { PolicyByNationalCodeRequestDto } from './dto/policy-by-national-code-request.dto';
|
||||
import { PolicyByPlateRequestDto } from './dto/policy-by-plate-request.dto';
|
||||
@@ -68,10 +69,14 @@ export class InquiryController {
|
||||
@ApiOperation({ summary: 'Real estate inquiry' })
|
||||
@ApiResponse({ status: 200, type: GenericInquiryResponseDto })
|
||||
async inquireRealEstate(
|
||||
@Body() payload: Record<string, unknown>,
|
||||
@Body() payload: RealEstateRequestDto,
|
||||
@Req() req: Request & { requestId?: string; trackingCode?: string },
|
||||
): Promise<BaseInquiryResponseDto<Record<string, unknown>>> {
|
||||
return this.inquireGeneric(InquiryType.REAL_ESTATE, payload, req);
|
||||
return this.inquireGeneric(
|
||||
InquiryType.REAL_ESTATE,
|
||||
payload as unknown as Record<string, unknown>,
|
||||
req,
|
||||
);
|
||||
}
|
||||
|
||||
@Post('sheba')
|
||||
|
||||
Reference in New Issue
Block a user