Add todo, uncomment cache line. Expand count

This commit is contained in:
James Cole
2020-02-09 10:06:38 +01:00
parent ccb1f56573
commit 8fb72fe697
2 changed files with 44 additions and 39 deletions

View File

@@ -398,7 +398,8 @@ class BudgetController extends Controller
/**
* Shows a budget list with spent/left/overspent.
*
* TODO this chart is not multi-currency aware.
* TODO there are cases when this chart hides expenses: when budget has limits
* and limits are found and used, but the expense is in another currency.
*
* @return JsonResponse
*
@@ -413,7 +414,7 @@ class BudgetController extends Controller
$cache->addProperty($end);
$cache->addProperty('chart.budget.frontpage');
if ($cache->has()) {
//return response()->json($cache->get()); // @codeCoverageIgnore
return response()->json($cache->get()); // @codeCoverageIgnore
}
$budgets = $this->repository->getActiveBudgets();
$chartData = [