diff --git a/src/controllers/user.ts b/src/controllers/user.ts index 4e5b78b..e8b6500 100644 --- a/src/controllers/user.ts +++ b/src/controllers/user.ts @@ -304,9 +304,7 @@ export class UserController { const repo_role = OrmHelper.DB.getRepository(UserRole); const data = await userRepository.findOne({ - relations: { - roles: true, - }, + relations: ['roles', 'roles.application'], where: { id: param.id } });