From 55d59c30e3d1c0807005b9ff24c4ec404e3239a9 Mon Sep 17 00:00:00 2001 From: kittapath Date: Fri, 27 Sep 2024 13:56:02 +0700 Subject: [PATCH] no message --- src/controllers/ProfileEditController.ts | 20 +++++++++---------- .../ProfileEditEmployeeController.ts | 20 +++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/controllers/ProfileEditController.ts b/src/controllers/ProfileEditController.ts index 083f588f..fac2767d 100644 --- a/src/controllers/ProfileEditController.ts +++ b/src/controllers/ProfileEditController.ts @@ -140,16 +140,16 @@ export class ProfileEditController extends Controller { return new HttpSuccess({ data: _data, total: total }); } - @Get("{Id}") - public async detailProfileByIdEdit(@Path() Id: string) { - const getProfileEdit = await this.profileEditRepo.findOne({ - where: { id: Id }, - }); - if (!getProfileEdit) { - throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล"); - } - return new HttpSuccess(getProfileEdit); - } + // @Get("{Id}") + // public async detailProfileByIdEdit(@Path() Id: string) { + // const getProfileEdit = await this.profileEditRepo.findOne({ + // where: { id: Id }, + // }); + // if (!getProfileEdit) { + // throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล"); + // } + // return new HttpSuccess(getProfileEdit); + // } @Get("{profileId}") public async detailProfileEdit(@Path() profileId: string) { diff --git a/src/controllers/ProfileEditEmployeeController.ts b/src/controllers/ProfileEditEmployeeController.ts index 5405742f..d4cdda23 100644 --- a/src/controllers/ProfileEditEmployeeController.ts +++ b/src/controllers/ProfileEditEmployeeController.ts @@ -147,16 +147,16 @@ export class ProfileEditEmployeeController extends Controller { return new HttpSuccess({ data: _data, total: total }); } - @Get("{Id}") - public async detailProfileEmployeeByIdEdit(@Path() Id: string) { - const getProfileEdit = await this.profileEditRepository.findOne({ - where: { id: Id }, - }); - if (!getProfileEdit) { - throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล"); - } - return new HttpSuccess(getProfileEdit); - } + // @Get("{Id}") + // public async detailProfileEmployeeByIdEdit(@Path() Id: string) { + // const getProfileEdit = await this.profileEditRepository.findOne({ + // where: { id: Id }, + // }); + // if (!getProfileEdit) { + // throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล"); + // } + // return new HttpSuccess(getProfileEdit); + // } @Get("{profileEmployeeId}") public async detailProfileEditEmp(@Path() profileEmployeeId: string) {