From 8215a37ee9286682f19f4cfe4538d85dec49e84e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 20 Sep 2023 01:36:48 +0000 Subject: [PATCH] reload client --- Controller/ApiController.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 1cf0ee5..537ad9b 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -237,6 +237,16 @@ final class ApiController extends Controller $internalRequest->setData('unit', $request->getDataInt('unit')); $this->app->moduleManager->get('ClientManagement', 'Api')->apiClientCreate($internalRequest, $internalResponse); + + /** @var \Modules\ClientManagement\Models\Client $client */ + $client = ClientMapper::get() + ->with('mainAddress') + ->with('attributes') + ->with('attributes/type') + ->with('attributes/value') + ->with('account') + ->where('account', $request->header->account) + ->execute(); } $paymentInfoMapper = PaymentMapper::getAll()