fix(api): reuse cached dashboard detail reads
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user