Fixed missing update in typeorm relations (#13262)
This PR fixes a missing update following up a recent PR #13247 That broke the admin panel user lookup.
This commit is contained in:
@ -78,13 +78,16 @@ export class AdminPanelService {
|
||||
|
||||
const targetUser = await this.userRepository.findOne({
|
||||
where: isEmail ? { email: userIdentifier } : { id: userIdentifier },
|
||||
relations: [
|
||||
'workspaces',
|
||||
'workspaces.workspace',
|
||||
'workspaces.workspace.workspaceUsers',
|
||||
'workspaces.workspace.workspaceUsers.user',
|
||||
'workspaces.workspace.featureFlags',
|
||||
],
|
||||
relations: {
|
||||
userWorkspaces: {
|
||||
workspace: {
|
||||
workspaceUsers: {
|
||||
user: true,
|
||||
},
|
||||
featureFlags: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
userValidator.assertIsDefinedOrThrow(
|
||||
|
||||
Reference in New Issue
Block a user