From 3e37d5f89df303166936e429793b43b57e76f9c0 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 28 Sep 2023 01:04:15 +0000 Subject: [PATCH] fix tests --- Controller/ApiController.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 7a7464c..7848463 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -2098,16 +2098,18 @@ final class ApiController extends Controller */ private function createProfileForAccount(Account $account, RequestAbstract $request) : void { + // @todo: why do we need the following lines? if (($request->getDataString('password') ?? '') === '' || ($request->getDataString('user') ?? '') === '' ) { return; } - $this->app->moduleManager->get('Profile')->apiProfileCreateDbEntry( - new \Modules\Profile\Models\Profile($account), - $request - ); + $request->setData('iaccount-idlist', $account->id); + + $internalResponse = new HttpResponse(); + + $this->app->moduleManager->get('Profile', 'Api')->apiProfileCreate($request, $internalResponse); } /**