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