base: uppercase getUid

cap
Varun Patil 2022-12-04 09:22:59 -08:00
parent d8af8ae3ba
commit 04614b9c6e
4 changed files with 5 additions and 5 deletions

View File

@ -85,7 +85,7 @@ class ApiBase extends Controller
}
/** Get logged in user's UID or throw HTTP error */
protected function getUid(): string
protected function getUID(): string
{
$user = $this->userSession->getUser();
if ($this->getShareToken()) {

View File

@ -39,7 +39,7 @@ class DaysController extends ApiBase
public function days(): JSONResponse
{
// Get the folder to show
$uid = $this->getUid();
$uid = $this->getUID();
// Get the folder to show
$root = null;
@ -92,7 +92,7 @@ class DaysController extends ApiBase
public function day(string $id): JSONResponse
{
// Get user
$uid = $this->getUid();
$uid = $this->getUID();
// Check for wildcard
$dayIds = [];

View File

@ -53,7 +53,7 @@ class OtherController extends ApiBase
return new JSONResponse(['message' => 'Cannot change settings in readonly mode'], Http::STATUS_FORBIDDEN);
}
$userId = $user->getUid();
$userId = $user->getUID();
$this->config->setUserValue($userId, Application::APPNAME, $key, $value);
return new JSONResponse([], Http::STATUS_OK);

View File

@ -62,7 +62,7 @@ class PageController extends Controller
$this->eventDispatcher->dispatchTyped(new LoadSidebar());
// Configuration
$uid = $user->getUid();
$uid = $user->getUID();
$this->initialState->provideInitialState('timelinePath', $this->config->getUserValue(
$uid,
Application::APPNAME,