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