Have battery services use the findNearestHub method without inventory check #378

This commit is contained in:
Kendrick Chan 2020-04-15 13:12:23 +08:00
parent 5eef2df4e0
commit 7aebe13d1f

View file

@ -994,7 +994,8 @@ class APIController extends Controller implements LoggedController
($jo->getServicetype() == ServiceType::BATTERY_REPLACEMENT_WARRANTY))
{
// get nearest hub
$nearest_hub = $this->findNearestHubWithInventory($jo, $batt, $em, $map_tools, $im);
// $nearest_hub = $this->findNearestHubWithInventory($jo, $batt, $em, $map_tools, $im);
$nearest_hub = $this->findNearestHub($jo, $em, $map_tools);
}
else
{