forked from Cutlery/immich
		
	fix(server): getAllAssets endpoint includes motion part of LivePhotos (#7194)
				
					
				
			This commit is contained in:
		
							parent
							
								
									dd53795953
								
							
						
					
					
						commit
						a8f177066b
					
				@ -116,7 +116,7 @@ export class AssetService {
 | 
				
			|||||||
    await this.access.requirePermission(auth, Permission.TIMELINE_READ, userId);
 | 
					    await this.access.requirePermission(auth, Permission.TIMELINE_READ, userId);
 | 
				
			||||||
    const assets = await this.assetRepository.getAllByFileCreationDate(
 | 
					    const assets = await this.assetRepository.getAllByFileCreationDate(
 | 
				
			||||||
      { take: dto.take ?? 1000, skip: dto.skip },
 | 
					      { 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));
 | 
					    return assets.items.map((asset) => mapAsset(asset));
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user