From 51ad36b2721482141e325356a350594d46163cf7 Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Sat, 11 Apr 2020 19:01:04 +0800 Subject: [PATCH] Fix bug in api request jo #374 --- src/Controller/APIController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Controller/APIController.php b/src/Controller/APIController.php index 9305b4b5..e0b2378e 100644 --- a/src/Controller/APIController.php +++ b/src/Controller/APIController.php @@ -995,7 +995,7 @@ class APIController extends Controller implements LoggedController } else { - $nearest_hub = $this->findNearestHub($jo, $em, $map_tools, $im); + $nearest_hub = $this->findNearestHub($jo, $em, $map_tools); } if (!empty($nearest_hub)) @@ -2258,8 +2258,8 @@ class APIController extends Controller implements LoggedController return $cust; } - protected function findNearestHub($jo, Battery $batt, EntityManagerInterface $em, - MapTools $map_tools, InventoryManager $im) + protected function findNearestHub($jo, EntityManagerInterface $em, + MapTools $map_tools) { // get the nearest 10 hubs $selected_hub = null;