mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
feat(server): sort images in duplicate groups by date (#18347)
This restores behaviour introduced in562fec6e2band lost in2e12c46980.
This commit is contained in:
parent
c8641d24f6
commit
00a77c2d6a
2 changed files with 9 additions and 8 deletions
|
|
@ -296,7 +296,11 @@ with
|
|||
"duplicates" as (
|
||||
select
|
||||
"assets"."duplicateId",
|
||||
jsonb_agg("asset") as "assets"
|
||||
json_agg(
|
||||
"asset"
|
||||
order by
|
||||
"assets"."localDateTime" asc
|
||||
) as "assets"
|
||||
from
|
||||
"assets"
|
||||
left join lateral (
|
||||
|
|
@ -323,7 +327,7 @@ with
|
|||
from
|
||||
"duplicates"
|
||||
where
|
||||
jsonb_array_length("assets") = $3
|
||||
json_array_length("assets") = $3
|
||||
),
|
||||
"removed_unique" as (
|
||||
update "assets"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue