no message

This commit is contained in:
kittapath 2024-10-18 13:33:24 +07:00
parent a5fa754079
commit f7c7012ffe

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