mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Removed unused parameter and added caching. [skip ci]
This commit is contained in:
parent
cd66d2c7b0
commit
2ddacf48d4
@ -37,15 +37,14 @@ class ReportController extends Controller
|
|||||||
* This chart, by default, is shown on the multi-year and year report pages,
|
* This chart, by default, is shown on the multi-year and year report pages,
|
||||||
* which means that giving it a 2 week "period" should be enough granularity.
|
* which means that giving it a 2 week "period" should be enough granularity.
|
||||||
*
|
*
|
||||||
* @param ReportQueryInterface $query
|
* @param string $reportType
|
||||||
* @param string $reportType
|
* @param Carbon $start
|
||||||
* @param Carbon $start
|
* @param Carbon $end
|
||||||
* @param Carbon $end
|
* @param Collection $accounts
|
||||||
* @param Collection $accounts
|
|
||||||
*
|
*
|
||||||
* @return \Illuminate\Http\JsonResponse
|
* @return \Illuminate\Http\JsonResponse
|
||||||
*/
|
*/
|
||||||
public function netWorth(ReportQueryInterface $query, string $reportType, Carbon $start, Carbon $end, Collection $accounts)
|
public function netWorth(string $reportType, Carbon $start, Carbon $end, Collection $accounts)
|
||||||
{
|
{
|
||||||
bcscale(2);
|
bcscale(2);
|
||||||
// chart properties for cache:
|
// chart properties for cache:
|
||||||
@ -75,7 +74,7 @@ class ReportController extends Controller
|
|||||||
}
|
}
|
||||||
$data = $this->generator->netWorth($entries);
|
$data = $this->generator->netWorth($entries);
|
||||||
|
|
||||||
//$cache->store($data);
|
$cache->store($data);
|
||||||
|
|
||||||
return Response::json($data);
|
return Response::json($data);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user