mirror of
https://github.com/immich-app/immich.git
synced 2025-12-23 17:25:11 +03:00
fix: automatic media location migration without internal assets (#20489)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user