mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-29 05:54:31 -05:00
UsersService: Wait for the DB to find a user
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
f4c73a8f96
commit
16dfbdd42d
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ export class UsersService {
|
|||
}
|
||||
|
||||
async getUserByUsername(userName: string): Promise<User> {
|
||||
const user = this.userRepository.findOne({
|
||||
const user = await this.userRepository.findOne({
|
||||
where: { userName: userName },
|
||||
});
|
||||
if (user === undefined) {
|
||||
|
|
Loading…
Reference in a new issue