From 7a70cbc3895e4bdcc0cc4f191cfdb06f130e64c8 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 26 Jan 2023 21:54:13 +0100 Subject: [PATCH] org -> unit change, some new functionality --- Controller/ApiController.php | 2 +- tests/Controller/ApiControllerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 0d19bce..166676a 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -63,7 +63,7 @@ final class ApiController extends Controller $request->getData('CSRF'), $request->getRouteVerb(), $this->app->appName, - $this->app->orgId, + $this->app->unitId, $this->app->accountManager->get($request->header->account) ), $request, diff --git a/tests/Controller/ApiControllerTest.php b/tests/Controller/ApiControllerTest.php index 64d064f..538dfd1 100755 --- a/tests/Controller/ApiControllerTest.php +++ b/tests/Controller/ApiControllerTest.php @@ -56,7 +56,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase }; $this->app->dbPool = $GLOBALS['dbpool']; - $this->app->orgId = 1; + $this->app->unitId = 1; $this->app->accountManager = new AccountManager($GLOBALS['session']); $this->app->appSettings = new CoreSettings(); $this->app->moduleManager = new ModuleManager($this->app, __DIR__ . '/../../../../Modules/');