fix(api): reuse cached dashboard detail reads

This commit is contained in:
2026-03-31 23:11:49 +02:00
parent 7908ab6d05
commit 79e0fd82f5
2 changed files with 220 additions and 2 deletions
@@ -340,7 +340,7 @@ export async function getDashboardBudgetForecastRead(
export async function getDashboardBudgetForecastDetail(
ctx: DashboardProcedureContext,
): Promise<DashboardBudgetForecastDetail> {
const budgetForecast: BudgetForecastRow[] = await getDashboardBudgetForecast(ctx.db);
const budgetForecast: BudgetForecastRow[] = await getDashboardBudgetForecastRead(ctx);
return mapBudgetForecastDetailRows(budgetForecast);
}
@@ -375,6 +375,6 @@ export async function getDashboardProjectHealthRead(ctx: DashboardProcedureConte
}
export async function getDashboardProjectHealthDetail(ctx: DashboardProcedureContext) {
const projectHealth = await getDashboardProjectHealth(ctx.db);
const projectHealth = await getDashboardProjectHealthRead(ctx);
return mapProjectHealthDetailRows(projectHealth);
}