fix Error รายการคำร้องขอแก้ไข #658

This commit is contained in:
Bright 2024-10-11 10:37:53 +07:00
parent fac7d762aa
commit 2e406b14ab

View file

@ -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) {