From ea60fa081c3df8b5fcc0f6cf99eab45d9b0a2e7a Mon Sep 17 00:00:00 2001 From: Ramon Gutierrez Date: Thu, 11 May 2023 19:13:56 +0800 Subject: [PATCH] Fix missing param for new mqtt client on assigning hub and rider #730 --- src/Controller/InsuranceController.php | 17 +++++++++++++++++ src/Controller/JobOrderController.php | 8 ++++---- 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 src/Controller/InsuranceController.php diff --git a/src/Controller/InsuranceController.php b/src/Controller/InsuranceController.php new file mode 100644 index 00000000..e65c2c86 --- /dev/null +++ b/src/Controller/InsuranceController.php @@ -0,0 +1,17 @@ +render($template, $params); } - public function openHubSubmit(Request $req, JobOrderHandlerInterface $jo_handler, MQTTClient $mclient, $id) + public function openHubSubmit(Request $req, JobOrderHandlerInterface $jo_handler, MQTTClient $mclient, MQTTClientApiv2 $mclientv2, $id) { $this->denyAccessUnlessGranted('jo_open.list', null, 'No access.'); @@ -549,7 +549,7 @@ class JobOrderController extends Controller try { - $error_array = $jo_handler->setHub($req, $id, $mclient); + $error_array = $jo_handler->setHub($req, $id, $mclient, $mclientv2); } catch (NotFoundHttpException $e) { @@ -598,7 +598,7 @@ class JobOrderController extends Controller return $this->render($template, $params); } - public function openRiderSubmit(Request $req, JobOrderHandlerInterface $jo_handler, MQTTClient $mclient, $id) + public function openRiderSubmit(Request $req, JobOrderHandlerInterface $jo_handler, MQTTClient $mclient, MQTTClientApiv2 $mclientv2, $id) { $this->denyAccessUnlessGranted('jo_open.list', null, 'No access.'); @@ -607,7 +607,7 @@ class JobOrderController extends Controller try { - $error_array = $jo_handler->setRider($req, $id, $mclient); + $error_array = $jo_handler->setRider($req, $id, $mclient, $mclientv2); } catch (NotFoundHttpException $e) {