mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
unnecessary parentheses
This commit is contained in:
parent
aa7f486259
commit
7ed62d4149
@ -13,7 +13,7 @@ with
|
|||||||
select
|
select
|
||||||
date_part(
|
date_part(
|
||||||
'year',
|
'year',
|
||||||
min((("localDateTime" at time zone 'UTC')::date))
|
min(("localDateTime" at time zone 'UTC')::date)
|
||||||
)::int
|
)::int
|
||||||
from
|
from
|
||||||
assets
|
assets
|
||||||
|
@ -100,7 +100,7 @@ export class AssetRepository implements IAssetRepository {
|
|||||||
.selectFrom((eb) =>
|
.selectFrom((eb) =>
|
||||||
eb
|
eb
|
||||||
.fn('generate_series', [
|
.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`,
|
sql`date_part('year', current_date)::int - 1`,
|
||||||
])
|
])
|
||||||
.as('year'),
|
.as('year'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user