rename new API field to albumUsers

This commit is contained in:
mgabor
2024-04-19 20:07:53 +02:00
parent 3d528f0840
commit 4960477627
14 changed files with 85 additions and 63 deletions

View File

@@ -105,9 +105,9 @@ export class AlbumResponseDto {
updatedAt!: Date;
albumThumbnailAssetId!: string | null;
shared!: boolean;
@ApiProperty({ deprecated: true, description: 'Deprecated in favor of sharedUsersV2' })
@ApiProperty({ deprecated: true, description: 'Deprecated in favor of albumUsers' })
sharedUsers!: UserResponseDto[];
sharedUsersV2!: AlbumUserResponseDto[];
albumUsers!: AlbumUserResponseDto[];
hasSharedLink!: boolean;
assets!: AssetResponseDto[];
owner!: UserResponseDto;
@@ -158,7 +158,7 @@ export const mapAlbum = (entity: AlbumEntity, withAssets: boolean, auth?: AuthDt
ownerId: entity.ownerId,
owner: mapUser(entity.owner),
sharedUsers,
sharedUsersV2,
albumUsers: sharedUsersV2,
shared: hasSharedUser || hasSharedLink,
hasSharedLink,
startDate,