Merge branch 'develop' into adiDev
This commit is contained in:
commit
20aa0506b8
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ดังกล่าว");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue