mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-29 06:15:29 -04:00
NotesService: Add unit tests
Fixed toUserDto method of UsersService: If a user has no email an empty string should be returned (like with the photoUrl) instead of null. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
128d861512
commit
bafe379cc3
2 changed files with 808 additions and 9 deletions
|
@ -63,7 +63,7 @@ export class UsersService {
|
|||
userName: user.userName,
|
||||
displayName: user.displayName,
|
||||
photo: this.getPhotoUrl(user),
|
||||
email: user.email,
|
||||
email: user.email ?? '',
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue