From 41cce9761a918c70b561d5f577b8733aca6e884a Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 28 Mar 2024 10:12:20 +0700 Subject: [PATCH] fix: wrong condition get addr history --- src/controllers/ProfileAddressController.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/controllers/ProfileAddressController.ts b/src/controllers/ProfileAddressController.ts index d7141708..5e9013f3 100644 --- a/src/controllers/ProfileAddressController.ts +++ b/src/controllers/ProfileAddressController.ts @@ -71,9 +71,7 @@ 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",