no message
This commit is contained in:
parent
7297f2bbc3
commit
55d59c30e3
2 changed files with 20 additions and 20 deletions
|
|
@ -140,16 +140,16 @@ export class ProfileEditController extends Controller {
|
||||||
return new HttpSuccess({ data: _data, total: total });
|
return new HttpSuccess({ data: _data, total: total });
|
||||||
}
|
}
|
||||||
|
|
||||||
@Get("{Id}")
|
// @Get("{Id}")
|
||||||
public async detailProfileByIdEdit(@Path() Id: string) {
|
// public async detailProfileByIdEdit(@Path() Id: string) {
|
||||||
const getProfileEdit = await this.profileEditRepo.findOne({
|
// const getProfileEdit = await this.profileEditRepo.findOne({
|
||||||
where: { id: Id },
|
// where: { id: Id },
|
||||||
});
|
// });
|
||||||
if (!getProfileEdit) {
|
// if (!getProfileEdit) {
|
||||||
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล");
|
// throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล");
|
||||||
}
|
// }
|
||||||
return new HttpSuccess(getProfileEdit);
|
// return new HttpSuccess(getProfileEdit);
|
||||||
}
|
// }
|
||||||
|
|
||||||
@Get("{profileId}")
|
@Get("{profileId}")
|
||||||
public async detailProfileEdit(@Path() profileId: string) {
|
public async detailProfileEdit(@Path() profileId: string) {
|
||||||
|
|
|
||||||
|
|
@ -147,16 +147,16 @@ export class ProfileEditEmployeeController extends Controller {
|
||||||
return new HttpSuccess({ data: _data, total: total });
|
return new HttpSuccess({ data: _data, total: total });
|
||||||
}
|
}
|
||||||
|
|
||||||
@Get("{Id}")
|
// @Get("{Id}")
|
||||||
public async detailProfileEmployeeByIdEdit(@Path() Id: string) {
|
// public async detailProfileEmployeeByIdEdit(@Path() Id: string) {
|
||||||
const getProfileEdit = await this.profileEditRepository.findOne({
|
// const getProfileEdit = await this.profileEditRepository.findOne({
|
||||||
where: { id: Id },
|
// where: { id: Id },
|
||||||
});
|
// });
|
||||||
if (!getProfileEdit) {
|
// if (!getProfileEdit) {
|
||||||
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล");
|
// throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล");
|
||||||
}
|
// }
|
||||||
return new HttpSuccess(getProfileEdit);
|
// return new HttpSuccess(getProfileEdit);
|
||||||
}
|
// }
|
||||||
|
|
||||||
@Get("{profileEmployeeId}")
|
@Get("{profileEmployeeId}")
|
||||||
public async detailProfileEditEmp(@Path() profileEmployeeId: string) {
|
public async detailProfileEditEmp(@Path() profileEmployeeId: string) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue