mirror of
https://github.com/immich-app/immich.git
synced 2025-02-11 01:18:24 -05: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"
|
json_agg("res") as "assets"
|
||||||
from
|
from
|
||||||
"res"
|
"res"
|
||||||
|
where
|
||||||
|
"localDateTime" >= $8
|
||||||
group by
|
group by
|
||||||
("localDateTime" at time zone 'UTC')::date
|
("localDateTime" at time zone 'UTC')::date
|
||||||
order by
|
order by
|
||||||
("localDateTime" at time zone 'UTC')::date desc
|
("localDateTime" at time zone 'UTC')::date desc
|
||||||
limit
|
limit
|
||||||
$8
|
$9
|
||||||
|
|
||||||
-- AssetRepository.getByIds
|
-- AssetRepository.getByIds
|
||||||
select
|
select
|
||||||
|
@ -258,6 +260,7 @@ with
|
||||||
where
|
where
|
||||||
"assets"."deletedAt" is null
|
"assets"."deletedAt" is null
|
||||||
and "assets"."isVisible" = $2
|
and "assets"."isVisible" = $2
|
||||||
|
and "assets"."localDateTime" >= $3
|
||||||
)
|
)
|
||||||
select
|
select
|
||||||
"timeBucket",
|
"timeBucket",
|
||||||
|
|
Loading…
Add table
Reference in a new issue