forked from Cutlery/immich
		
	fix sql
This commit is contained in:
		
							parent
							
								
									7db36ea70d
								
							
						
					
					
						commit
						b969fc760d
					
				@ -335,7 +335,7 @@ export class AssetRepository implements IAssetRepository {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  @GenerateSql(
 | 
					  @GenerateSql(
 | 
				
			||||||
    ...Object.values(WithProperty)
 | 
					    ...Object.values(WithProperty)
 | 
				
			||||||
      .filter((property) => property !== WithProperty.IS_OFFLINE)
 | 
					      .filter((property) => property !== WithProperty.IS_OFFLINE && property !== WithProperty.IS_ONLINE)
 | 
				
			||||||
      .map((property) => ({
 | 
					      .map((property) => ({
 | 
				
			||||||
        name: property,
 | 
					        name: property,
 | 
				
			||||||
        params: [DummyValue.PAGINATION, property],
 | 
					        params: [DummyValue.PAGINATION, property],
 | 
				
			||||||
 | 
				
			|||||||
@ -281,20 +281,6 @@ WHERE
 | 
				
			|||||||
GROUP BY
 | 
					GROUP BY
 | 
				
			||||||
  "libraries"."id"
 | 
					  "libraries"."id"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- LibraryRepository.getOnlineAssetPaths
 | 
					 | 
				
			||||||
SELECT
 | 
					 | 
				
			||||||
  "assets"."originalPath" AS "assets_originalPath"
 | 
					 | 
				
			||||||
FROM
 | 
					 | 
				
			||||||
  "libraries" "library"
 | 
					 | 
				
			||||||
  INNER JOIN "assets" "assets" ON "assets"."libraryId" = "library"."id"
 | 
					 | 
				
			||||||
  AND ("assets"."deletedAt" IS NULL)
 | 
					 | 
				
			||||||
WHERE
 | 
					 | 
				
			||||||
  (
 | 
					 | 
				
			||||||
    "library"."id" = $1
 | 
					 | 
				
			||||||
    AND "assets"."isOffline" = false
 | 
					 | 
				
			||||||
  )
 | 
					 | 
				
			||||||
  AND ("library"."deletedAt" IS NULL)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-- LibraryRepository.getAssetIds
 | 
					-- LibraryRepository.getAssetIds
 | 
				
			||||||
SELECT
 | 
					SELECT
 | 
				
			||||||
  "assets"."id" AS "assets_id"
 | 
					  "assets"."id" AS "assets_id"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user