Skip to content

Commit

Permalink
fix exception issue
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Sep 21, 2024
1 parent 1f351e3 commit 89597c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/Domain/Calendar/Repositories/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Leantime\Domain\Tickets\Services\Tickets;
use Leantime\Domain\Users\Repositories\Users;
use PDO;
use PHPUnit\Exception;

/**
*
Expand Down
2 changes: 1 addition & 1 deletion app/Domain/Calendar/Services/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public function getIcalByHash(string $userHash, string $calHash): IcalCalendar
$calendarEvents = $this->calendarRepo->getCalendarBySecretHash($userHash, $calHash);

if(!$calendarEvents) {
throw new Exception("Calendar could not be retrieved");
throw new \Exception("Calendar could not be retrieved");
}

$eventObjects = [];
Expand Down

0 comments on commit 89597c1

Please sign in to comment.