mirror of
https://github.com/immich-app/immich.git
synced 2026-02-28 17:49:05 +03:00
fix: Download the edited version when downloading multiple photos (#26259)
* fix: download the edited version when downloading multiple photos * test: update tests * chore: clean up --------- Co-authored-by: Jason Rasmussen <jason@rasm.me>
This commit is contained in:
@@ -587,6 +587,7 @@ where
|
||||
|
||||
-- AssetRepository.getForOriginal
|
||||
select
|
||||
"asset"."id",
|
||||
"originalFileName",
|
||||
"asset_file"."path" as "editedPath",
|
||||
"originalPath"
|
||||
@@ -596,7 +597,21 @@ from
|
||||
and "asset_file"."isEdited" = $1
|
||||
and "asset_file"."type" = $2
|
||||
where
|
||||
"asset"."id" = $3
|
||||
"asset"."id" in ($3)
|
||||
|
||||
-- AssetRepository.getForOriginals
|
||||
select
|
||||
"asset"."id",
|
||||
"originalFileName",
|
||||
"asset_file"."path" as "editedPath",
|
||||
"originalPath"
|
||||
from
|
||||
"asset"
|
||||
left join "asset_file" on "asset"."id" = "asset_file"."assetId"
|
||||
and "asset_file"."isEdited" = $1
|
||||
and "asset_file"."type" = $2
|
||||
where
|
||||
"asset"."id" in ($3)
|
||||
|
||||
-- AssetRepository.getForThumbnail
|
||||
select
|
||||
|
||||
Reference in New Issue
Block a user