Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
Signed-off-by: dartcafe <[email protected]>
  • Loading branch information
dartcafe committed Jul 9, 2023
1 parent e815fb3 commit f84829c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Service/PreferencesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
use OCP\IUserSession;

class PreferencesService {
private ?string $userId = null,
private ?string $userId = null;

public function __construct(
private IUserSession $userSession,
Expand All @@ -41,7 +41,7 @@ public function __construct(
$this->load();
}

public function load(?string $userId): Preferences {
public function load(?string $userId = null): Preferences {
try {
$this->preferences = $this->preferencesMapper->find($userId ?? $this->userId);
} catch (DoesNotExistException $e) {
Expand Down

0 comments on commit f84829c

Please sign in to comment.