mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
refactor: add ordering by file creation date in asset aggregation queries
This commit is contained in:
parent
80b7a7cd2d
commit
8d71f477a5
1 changed files with 4 additions and 0 deletions
|
|
@ -54,6 +54,8 @@ select
|
|||
"asset"."deletedAt" is null
|
||||
and "asset"."stackId" = "stack"."id"
|
||||
and "asset"."visibility" in ('archive', 'timeline')
|
||||
order by
|
||||
"asset"."fileCreatedAt" asc
|
||||
) as agg
|
||||
) as "assets"
|
||||
from
|
||||
|
|
@ -139,6 +141,8 @@ select
|
|||
"asset"."deletedAt" is null
|
||||
and "asset"."stackId" = "stack"."id"
|
||||
and "asset"."visibility" in ('archive', 'timeline')
|
||||
order by
|
||||
"asset"."fileCreatedAt" asc
|
||||
) as agg
|
||||
) as "assets"
|
||||
from
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue