|
@@ -2422,7 +2422,7 @@ class StatsController extends Controller
|
|
/**
|
|
/**
|
|
* @Route("/admin/stats/olt/{deviceId}/getConsumption", name="get_device_consumption_by_device_id")
|
|
* @Route("/admin/stats/olt/{deviceId}/getConsumption", name="get_device_consumption_by_device_id")
|
|
*/
|
|
*/
|
|
- public function getDeviceConsumptionByDeviceId($deviceId) {
|
|
|
|
|
|
+ public function getDeviceConsumptionByDeviceId(Request $request, $deviceId) {
|
|
|
|
|
|
$from = date("Y-m-d",strtotime('-30 days'));
|
|
$from = date("Y-m-d",strtotime('-30 days'));
|
|
$to = date("Y-m-d");
|
|
$to = date("Y-m-d");
|