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 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

View File

@ -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'),