refactor(core): Continue moving typeorm operators to repositories (no-changelog) (#8186)
Follow-up to: #8163
This commit is contained in:
@@ -138,7 +138,7 @@ export class AuthController {
|
||||
}
|
||||
|
||||
try {
|
||||
user = await this.userService.findOneOrFail({ where: {} });
|
||||
user = await this.userRepository.findOneOrFail({ where: {}, relations: ['globalRole'] });
|
||||
} catch (error) {
|
||||
throw new InternalServerError(
|
||||
'No users found in database - did you wipe the users table? Create at least one user.',
|
||||
|
||||
Reference in New Issue
Block a user