fix: tests
This commit is contained in:
parent
202e2174a2
commit
fa926ce3b1
1 changed files with 2 additions and 1 deletions
|
@ -81,7 +81,8 @@ export class AlbumService {
|
|||
async get(authUser: AuthUserDto, id: string, dto: AlbumInfoDto): Promise<AlbumResponseDto> {
|
||||
await this.access.requirePermission(authUser, Permission.ALBUM_READ, id);
|
||||
await this.albumRepository.updateThumbnails();
|
||||
return mapAlbum(await this.findOrFail(id, { withAssets: false }), !dto.withoutAssets);
|
||||
const withAssets = dto.withoutAssets === undefined ? true : !dto.withoutAssets;
|
||||
return mapAlbum(await this.findOrFail(id, { withAssets }), !dto.withoutAssets);
|
||||
}
|
||||
|
||||
async create(authUser: AuthUserDto, dto: CreateAlbumDto): Promise<AlbumResponseDto> {
|
||||
|
|
Loading…
Add table
Reference in a new issue