1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-24 04:32:45 +01:00

unnecessary parentheses

This commit is contained in:
mertalev 2024-12-19 20:10:48 -05:00
parent aa7f486259
commit 7ed62d4149
No known key found for this signature in database
GPG key ID: 3A2B5BFC678DBC80
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ with
select
date_part(
'year',
min((("localDateTime" at time zone 'UTC')::date))
min(("localDateTime" at time zone 'UTC')::date)
)::int
from
assets

View file

@ -100,7 +100,7 @@ export class AssetRepository implements IAssetRepository {
.selectFrom((eb) =>
eb
.fn('generate_series', [
sql`(select date_part('year', min((("localDateTime" at time zone 'UTC')::date)))::int from assets)`,
sql`(select date_part('year', min(("localDateTime" at time zone 'UTC')::date))::int from assets)`,
sql`date_part('year', current_date)::int - 1`,
])
.as('year'),