From 7aebe13d1fa80dd1c789024b002c34caeb668ba9 Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Wed, 15 Apr 2020 13:12:23 +0800 Subject: [PATCH] Have battery services use the findNearestHub method without inventory check #378 --- src/Controller/APIController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Controller/APIController.php b/src/Controller/APIController.php index 9b5fd28c..a0841841 100644 --- a/src/Controller/APIController.php +++ b/src/Controller/APIController.php @@ -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 {