แก้ค้นหาประวัติ by token

This commit is contained in:
Kittapath 2024-05-23 17:20:15 +07:00
parent ff0be7af48
commit 24c5cbef55
7 changed files with 8 additions and 8 deletions

View file

@ -41,7 +41,7 @@ export class ProfileAddressController extends Controller {
throw new HttpError(HttpStatus.BAD_REQUEST, "ไม่พบ profile ดังกล่าว");
}
const getProfileAddress = await this.profileRepo.findOne({
where: { id: request.user.sub },
where: { id: profile.id },
select: [
"id",
"registrationAddress",