mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 01:11:16 +03:00
fix(server): live photo relation (#10637)
* fix(server): live photo relation * handle deletion and unit test * lint * chore: clean up and e2e tests * fix test * sql --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
@@ -377,6 +377,14 @@ WHERE
|
||||
AND ("AssetEntity"."isVisible" = $3)
|
||||
)
|
||||
|
||||
-- AssetRepository.getLivePhotoCount
|
||||
SELECT
|
||||
COUNT(1) AS "cnt"
|
||||
FROM
|
||||
"assets" "AssetEntity"
|
||||
WHERE
|
||||
(("AssetEntity"."livePhotoVideoId" = $1))
|
||||
|
||||
-- AssetRepository.getById
|
||||
SELECT
|
||||
"AssetEntity"."id" AS "AssetEntity_id",
|
||||
|
||||
Reference in New Issue
Block a user