mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(server): for individual shares not showing thumbnails (#15895)
* Fix for individual shares not showing thumbnails * synced sql * chore: add e2e test --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
parent
b730aa60ed
commit
0bb1219b5f
3 changed files with 9 additions and 4 deletions
|
|
@ -100,13 +100,14 @@ order by
|
|||
-- SharedLinkRepository.getAll
|
||||
select distinct
|
||||
on ("shared_links"."createdAt") "shared_links".*,
|
||||
to_json("assets") as "assets",
|
||||
to_json("album") as "album"
|
||||
from
|
||||
"shared_links"
|
||||
left join "shared_link__asset" on "shared_link__asset"."sharedLinksId" = "shared_links"."id"
|
||||
left join lateral (
|
||||
select
|
||||
"assets".*
|
||||
json_agg("assets") as "assets"
|
||||
from
|
||||
"assets"
|
||||
where
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue