unnecessary parentheses

This commit is contained in:
mertalev
2024-12-19 20:10:48 -05:00
parent aa7f486259
commit 7ed62d4149
2 changed files with 2 additions and 2 deletions
+1 -1
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
+1 -1
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'),