mirror of
https://github.com/immich-app/immich.git
synced 2025-02-03 01:22:44 +01:00
sql
This commit is contained in:
parent
6a3267911b
commit
8c24bb7014
1 changed files with 4 additions and 1 deletions
|
@ -59,12 +59,14 @@ select
|
|||
json_agg("res") as "assets"
|
||||
from
|
||||
"res"
|
||||
where
|
||||
"localDateTime" >= $8
|
||||
group by
|
||||
("localDateTime" at time zone 'UTC')::date
|
||||
order by
|
||||
("localDateTime" at time zone 'UTC')::date desc
|
||||
limit
|
||||
$8
|
||||
$9
|
||||
|
||||
-- AssetRepository.getByIds
|
||||
select
|
||||
|
@ -258,6 +260,7 @@ with
|
|||
where
|
||||
"assets"."deletedAt" is null
|
||||
and "assets"."isVisible" = $2
|
||||
and "assets"."localDateTime" >= $3
|
||||
)
|
||||
select
|
||||
"timeBucket",
|
||||
|
|
Loading…
Reference in a new issue