Исправлена ошибка логирования null значения
This commit is contained in:
parent
d20b05d760
commit
6078507240
1 changed files with 5 additions and 3 deletions
|
|
@ -47,9 +47,11 @@ export class UsersService {
|
|||
|
||||
async getUserFromRedmine(userId: number): Promise<RedmineTypes.User | null> {
|
||||
const user = await this.redmineDataLoader.loadUser(userId);
|
||||
if (user) {
|
||||
this.logger.debug(
|
||||
`Get user from redmine with userId = ${userId}, login = ${user.login}`,
|
||||
);
|
||||
}
|
||||
return user;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue