diff --git a/src/controllers/ProfileAddressController.ts b/src/controllers/ProfileAddressController.ts index e0907264..fc9ff880 100644 --- a/src/controllers/ProfileAddressController.ts +++ b/src/controllers/ProfileAddressController.ts @@ -72,22 +72,24 @@ export class ProfileAddressController extends Controller { public async getProfileAddressHistory(@Path() addressId: string) { const record = await this.profileAddressHistoryRepo.find({ where: { profileId: addressId }, + relations: { + registrationProvince: true, + registrationDistrict: true, + registrationSubDistrict: true, + currentProvince: true, + currentDistrict: true, + currentSubDistrict: true, + }, select: [ "registrationAddress", "registrationProvinceId", - "registrationProvince", "registrationDistrictId", - "registrationDistrict", "registrationSubDistrictId", - "registrationSubDistrict", "registrationZipCode", "currentAddress", "currentProvinceId", - "currentProvince", "currentDistrictId", - "currentDistrict", "currentSubDistrictId", - "currentSubDistrict", "currentZipCode", "createdFullName", "createdAt",