1
0
forked from Cutlery/immich
This commit is contained in:
Jonathan Jogenfors 2024-03-19 23:31:50 +01:00
parent 7db36ea70d
commit b969fc760d
2 changed files with 1 additions and 15 deletions

View File

@ -335,7 +335,7 @@ export class AssetRepository implements IAssetRepository {
@GenerateSql(
...Object.values(WithProperty)
.filter((property) => property !== WithProperty.IS_OFFLINE)
.filter((property) => property !== WithProperty.IS_OFFLINE && property !== WithProperty.IS_ONLINE)
.map((property) => ({
name: property,
params: [DummyValue.PAGINATION, property],

View File

@ -281,20 +281,6 @@ WHERE
GROUP BY
"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
SELECT
"assets"."id" AS "assets_id"