diff --git a/api/src/pcapi/connectors/clickhouse/queries/yearly_revenue.py b/api/src/pcapi/connectors/clickhouse/queries/yearly_revenue.py index d7aba3f5c8b..7f3d9ffb424 100644 --- a/api/src/pcapi/connectors/clickhouse/queries/yearly_revenue.py +++ b/api/src/pcapi/connectors/clickhouse/queries/yearly_revenue.py @@ -38,7 +38,7 @@ class Config: class YearlyAggregatedRevenueModel(pydantic_v1.BaseModel): - income_by_year: dict[str, AggregatedRevenue | dict] + income_by_year: dict[str, AggregatedRevenue | dict[None, None]] class Config: extra = "forbid" diff --git a/pro/src/apiClient/v1/models/StatisticsModel.ts b/pro/src/apiClient/v1/models/StatisticsModel.ts index bfbe4f7b006..c19327da4da 100644 --- a/pro/src/apiClient/v1/models/StatisticsModel.ts +++ b/pro/src/apiClient/v1/models/StatisticsModel.ts @@ -4,6 +4,6 @@ /* eslint-disable */ import type { AggregatedRevenue } from './AggregatedRevenue'; export type StatisticsModel = { - incomeByYear: Record)>; + incomeByYear: Record)>; };