mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-27 12:08:02 -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
16b5f3a5c8
commit
6e6ab84391
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ export class UsersService {
|
||||||
}
|
}
|
||||||
|
|
||||||
async getUserByUsername(userName: string): Promise<User> {
|
async getUserByUsername(userName: string): Promise<User> {
|
||||||
const user = this.userRepository.findOne({
|
const user = await this.userRepository.findOne({
|
||||||
where: { userName: userName },
|
where: { userName: userName },
|
||||||
});
|
});
|
||||||
if (user === undefined) {
|
if (user === undefined) {
|
||||||
|
|
Loading…
Reference in a new issue