fix: automatic media location migration without internal assets (#20489)

This commit is contained in:
Daniel Dietzler 2025-08-01 00:58:35 +02:00 committed by GitHub
parent c3263e50fc
commit 3cdc6844a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 44 deletions

View file

@ -170,27 +170,10 @@ where
-- AssetRepository.getFileSamples
select
"asset"."id",
"asset"."originalPath",
"asset"."sidecarPath",
"asset"."encodedVideoPath",
(
select
coalesce(json_agg(agg), '[]')
from
(
select
"path"
from
"asset_file"
where
"asset"."id" = "asset_file"."assetId"
) as agg
) as "files"
"assetId",
"path"
from
"asset"
where
"asset"."libraryId" is null
"asset_file"
limit
3