Fix bug in api request jo #374

This commit is contained in:
Kendrick Chan 2020-04-11 19:01:04 +08:00
parent 1ee744eba0
commit 51ad36b272

View file

@ -995,7 +995,7 @@ class APIController extends Controller implements LoggedController
} }
else else
{ {
$nearest_hub = $this->findNearestHub($jo, $em, $map_tools, $im); $nearest_hub = $this->findNearestHub($jo, $em, $map_tools);
} }
if (!empty($nearest_hub)) if (!empty($nearest_hub))
@ -2258,8 +2258,8 @@ class APIController extends Controller implements LoggedController
return $cust; return $cust;
} }
protected function findNearestHub($jo, Battery $batt, EntityManagerInterface $em, protected function findNearestHub($jo, EntityManagerInterface $em,
MapTools $map_tools, InventoryManager $im) MapTools $map_tools)
{ {
// get the nearest 10 hubs // get the nearest 10 hubs
$selected_hub = null; $selected_hub = null;