From 739dc56639e74757ee40fcd8ae6f01b8e8e1a6c4 Mon Sep 17 00:00:00 2001 From: mgabor <> Date: Fri, 19 Apr 2024 20:18:26 +0200 Subject: [PATCH] missed rename from previous commit --- server/src/dtos/album.dto.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/dtos/album.dto.ts b/server/src/dtos/album.dto.ts index 1112a6486d..d5c8c244c5 100644 --- a/server/src/dtos/album.dto.ts +++ b/server/src/dtos/album.dto.ts @@ -124,12 +124,12 @@ export class AlbumResponseDto { export const mapAlbum = (entity: AlbumEntity, withAssets: boolean, auth?: AuthDto): AlbumResponseDto => { const sharedUsers: UserResponseDto[] = []; - const sharedUsersV2: AlbumUserResponseDto[] = []; + const albumUsers: AlbumUserResponseDto[] = []; if (entity.sharedUsers) { for (const albumUser of entity.sharedUsers) { sharedUsers.push(mapUser(albumUser.user)); - sharedUsersV2.push({ + albumUsers.push({ user: mapUser(albumUser.user), role: albumUser.role, }); @@ -158,7 +158,7 @@ export const mapAlbum = (entity: AlbumEntity, withAssets: boolean, auth?: AuthDt ownerId: entity.ownerId, owner: mapUser(entity.owner), sharedUsers, - albumUsers: sharedUsersV2, + albumUsers, shared: hasSharedUser || hasSharedLink, hasSharedLink, startDate,