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({
|
const targetUser = await this.userRepository.findOne({
|
||||||
where: isEmail ? { email: userIdentifier } : { id: userIdentifier },
|
where: isEmail ? { email: userIdentifier } : { id: userIdentifier },
|
||||||
relations: [
|
relations: {
|
||||||
'workspaces',
|
userWorkspaces: {
|
||||||
'workspaces.workspace',
|
workspace: {
|
||||||
'workspaces.workspace.workspaceUsers',
|
workspaceUsers: {
|
||||||
'workspaces.workspace.workspaceUsers.user',
|
user: true,
|
||||||
'workspaces.workspace.featureFlags',
|
},
|
||||||
],
|
featureFlags: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
userValidator.assertIsDefinedOrThrow(
|
userValidator.assertIsDefinedOrThrow(
|
||||||
|
|||||||
Reference in New Issue
Block a user