fix: memories off by one (#16434)

This commit is contained in:
Jason Rasmussen 2025-02-28 13:51:28 -05:00 committed by GitHub
parent 5c0538e52c
commit e684062569
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 24 additions and 24 deletions

View file

@ -55,9 +55,10 @@ with
inner join "exif" on "a"."id" = "exif"."assetId"
)
select
(
(now() at time zone 'UTC')::date - ("localDateTime" at time zone 'UTC')::date
) / 365 as "yearsAgo",
date_part(
'year',
("localDateTime" at time zone 'UTC')::date
)::int as "year",
json_agg("res") as "assets"
from
"res"