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:
parent
aa7f486259
commit
7ed62d4149
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue