From a8f177066bf952124679a873a8d94faa9ff0e820 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 19 Feb 2024 07:24:14 -0600 Subject: [PATCH] fix(server): `getAllAssets` endpoint includes motion part of LivePhotos (#7194) --- server/src/immich/api-v1/asset/asset.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/immich/api-v1/asset/asset.service.ts b/server/src/immich/api-v1/asset/asset.service.ts index 58f800f08c..17488016c9 100644 --- a/server/src/immich/api-v1/asset/asset.service.ts +++ b/server/src/immich/api-v1/asset/asset.service.ts @@ -116,7 +116,7 @@ export class AssetService { await this.access.requirePermission(auth, Permission.TIMELINE_READ, userId); const assets = await this.assetRepository.getAllByFileCreationDate( { take: dto.take ?? 1000, skip: dto.skip }, - { ...dto, userIds: [userId], withDeleted: true, orderDirection: 'DESC', withExif: true }, + { ...dto, userIds: [userId], withDeleted: true, orderDirection: 'DESC', withExif: true, isVisible: true }, ); return assets.items.map((asset) => mapAsset(asset)); }