This commit is contained in:
Bright 2024-11-07 13:55:01 +07:00
commit e2d202d17c
2 changed files with 6 additions and 3 deletions

View file

@ -160,10 +160,10 @@ export class ProfileEditEmployeeController extends Controller {
// return new HttpSuccess(getProfileEdit);
// }
@Get("{profileEmployeeId}")
public async detailProfileEditEmp(@Path() profileEmployeeId: string) {
@Get("{id}")
public async detailProfileEditEmp(@Path() id: string) {
const getProfileEdit = await this.profileEditRepository.findOne({
where: { profileEmployeeId: profileEmployeeId },
where: { id: id },
relations: ["profileEmployee"],
});
if (!getProfileEdit) {