missed rename from previous commit

This commit is contained in:
mgabor
2024-04-19 20:18:26 +02:00
parent 7d976aec09
commit 739dc56639

View File

@@ -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,