fix: wrong condition get addr history
This commit is contained in:
parent
ab365257de
commit
41cce9761a
1 changed files with 1 additions and 3 deletions
|
|
@ -71,9 +71,7 @@ export class ProfileAddressController extends Controller {
|
||||||
@Get("history/{addressId}")
|
@Get("history/{addressId}")
|
||||||
public async getProfileAddressHistory(@Path() addressId: string) {
|
public async getProfileAddressHistory(@Path() addressId: string) {
|
||||||
const record = await this.profileAddressHistoryRepo.find({
|
const record = await this.profileAddressHistoryRepo.find({
|
||||||
where: {
|
where: { profileId: addressId },
|
||||||
id: addressId,
|
|
||||||
},
|
|
||||||
select: [
|
select: [
|
||||||
"registrationAddress",
|
"registrationAddress",
|
||||||
"registrationProvinceId",
|
"registrationProvinceId",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue