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(
|
||||
...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],
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user