missed rename from previous commit
This commit is contained in:
@@ -124,12 +124,12 @@ export class AlbumResponseDto {
|
|||||||
|
|
||||||
export const mapAlbum = (entity: AlbumEntity, withAssets: boolean, auth?: AuthDto): AlbumResponseDto => {
|
export const mapAlbum = (entity: AlbumEntity, withAssets: boolean, auth?: AuthDto): AlbumResponseDto => {
|
||||||
const sharedUsers: UserResponseDto[] = [];
|
const sharedUsers: UserResponseDto[] = [];
|
||||||
const sharedUsersV2: AlbumUserResponseDto[] = [];
|
const albumUsers: AlbumUserResponseDto[] = [];
|
||||||
|
|
||||||
if (entity.sharedUsers) {
|
if (entity.sharedUsers) {
|
||||||
for (const albumUser of entity.sharedUsers) {
|
for (const albumUser of entity.sharedUsers) {
|
||||||
sharedUsers.push(mapUser(albumUser.user));
|
sharedUsers.push(mapUser(albumUser.user));
|
||||||
sharedUsersV2.push({
|
albumUsers.push({
|
||||||
user: mapUser(albumUser.user),
|
user: mapUser(albumUser.user),
|
||||||
role: albumUser.role,
|
role: albumUser.role,
|
||||||
});
|
});
|
||||||
@@ -158,7 +158,7 @@ export const mapAlbum = (entity: AlbumEntity, withAssets: boolean, auth?: AuthDt
|
|||||||
ownerId: entity.ownerId,
|
ownerId: entity.ownerId,
|
||||||
owner: mapUser(entity.owner),
|
owner: mapUser(entity.owner),
|
||||||
sharedUsers,
|
sharedUsers,
|
||||||
albumUsers: sharedUsersV2,
|
albumUsers,
|
||||||
shared: hasSharedUser || hasSharedLink,
|
shared: hasSharedUser || hasSharedLink,
|
||||||
hasSharedLink,
|
hasSharedLink,
|
||||||
startDate,
|
startDate,
|
||||||
|
|||||||
Reference in New Issue
Block a user