refactor: add ordering by file creation date in asset aggregation queries

This commit is contained in:
timonrieger 2026-04-05 23:41:22 +02:00
parent 80b7a7cd2d
commit 8d71f477a5
No known key found for this signature in database

View file

@ -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