From 2e406b14ab7d89083d69eca4be93132342df21f3 Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 11 Oct 2024 10:37:53 +0700 Subject: [PATCH] =?UTF-8?q?fix=20Error=20=E0=B8=A3=E0=B8=B2=E0=B8=A2?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=84=E0=B8=B3=E0=B8=A3=E0=B9=89?= =?UTF-8?q?=E0=B8=AD=E0=B8=87=E0=B8=82=E0=B8=AD=E0=B9=81=E0=B8=81=E0=B9=89?= =?UTF-8?q?=E0=B9=84=E0=B8=82=20#658?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ProfileEditController.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/ProfileEditController.ts b/src/controllers/ProfileEditController.ts index 5c0e0e17..f1b9d7c8 100644 --- a/src/controllers/ProfileEditController.ts +++ b/src/controllers/ProfileEditController.ts @@ -153,10 +153,10 @@ export class ProfileEditController extends Controller { // return new HttpSuccess(getProfileEdit); // } - @Get("{profileId}") - public async detailProfileEdit(@Path() profileId: string) { + @Get("{id}") + public async detailProfileEdit(@Path() id: string) { const getProfileEdit = await this.profileEditRepo.findOne({ - where: { profileId: profileId }, + where: { id: id }, relations: ["profile"], }); if (!getProfileEdit) {