From f7c7012ffecd742a3a10b96eea95268b62fe956e Mon Sep 17 00:00:00 2001 From: kittapath Date: Fri, 18 Oct 2024 13:33:24 +0700 Subject: [PATCH] no message --- src/controllers/ProfileEditController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/ProfileEditController.ts b/src/controllers/ProfileEditController.ts index 24e74c9f..e41c0194 100644 --- a/src/controllers/ProfileEditController.ts +++ b/src/controllers/ProfileEditController.ts @@ -187,7 +187,7 @@ export class ProfileEditController extends Controller { public async newProfileEdit(@Request() req: RequestWithUser, @Body() body: CreateProfileEdit) { const profile = await this.profileRepo.findOne({ where: { keycloak: req.user.sub }, - relations: ["posLevel", "posLevel.posLevelName", "posType", "posType.posTypeName"], + relations: ["posLevel", "posType"], }); if (!profile) { throw new HttpError(HttpStatus.BAD_REQUEST, "ไม่พบ profile ดังกล่าว");