Merge branch 'develop' into adiDev

This commit is contained in:
AdisakKanthawilang 2024-10-18 14:36:33 +07:00
commit 20aa0506b8

View file

@ -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 ดังกล่าว");