fix: wrong condition get addr history

This commit is contained in:
Methapon2001 2024-03-28 10:12:20 +07:00
parent ab365257de
commit 41cce9761a

View file

@ -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",