mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
fix: change property name in backend DTO
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
a8b3b117dc
commit
5d396eb99c
3 changed files with 6 additions and 6 deletions
|
@ -37,7 +37,7 @@ export class UserInfoDto extends BaseDto {
|
|||
format: 'uri',
|
||||
})
|
||||
@IsString()
|
||||
photo: string;
|
||||
photoUrl: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||||
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
@ -147,7 +147,7 @@ describe('UsersService', () => {
|
|||
const userDto = service.toUserDto(user);
|
||||
expect(userDto.username).toEqual(username);
|
||||
expect(userDto.displayName).toEqual(displayname);
|
||||
expect(userDto.photo).toEqual('');
|
||||
expect(userDto.photoUrl).toEqual('');
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -159,7 +159,7 @@ describe('UsersService', () => {
|
|||
const userDto = service.toFullUserDto(user);
|
||||
expect(userDto.username).toEqual(username);
|
||||
expect(userDto.displayName).toEqual(displayname);
|
||||
expect(userDto.photo).toEqual('');
|
||||
expect(userDto.photoUrl).toEqual('');
|
||||
expect(userDto.email).toEqual('');
|
||||
});
|
||||
});
|
||||
|
|
|
@ -119,7 +119,7 @@ export class UsersService {
|
|||
return {
|
||||
username: user.username,
|
||||
displayName: user.displayName,
|
||||
photo: this.getPhotoUrl(user),
|
||||
photoUrl: this.getPhotoUrl(user),
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -132,7 +132,7 @@ export class UsersService {
|
|||
return {
|
||||
username: user.username,
|
||||
displayName: user.displayName,
|
||||
photo: this.getPhotoUrl(user),
|
||||
photoUrl: this.getPhotoUrl(user),
|
||||
email: user.email ?? '',
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue