diff --git a/src/App/Command/UpdatePageCachesCommand.php b/src/App/Command/UpdatePageCachesCommand.php index 132cf77..2274daa 100755 --- a/src/App/Command/UpdatePageCachesCommand.php +++ b/src/App/Command/UpdatePageCachesCommand.php @@ -36,8 +36,8 @@ class UpdatePageCachesCommand extends Command $teams = $this->teamService->listTeams(); foreach ($teams as $team) { set_time_limit(30); - if (0 < ($teamId = $team->getId())) { - $this->jiraCollectorService->getKanbanBoard($teamId,true); + if (null !== $team->getFilterId()) { + $this->jiraCollectorService->getKanbanBoard($team->getId(), true); } } } diff --git a/src/App/Service/JiraCollectorService.php b/src/App/Service/JiraCollectorService.php index 2fb37f2..aa4977e 100755 --- a/src/App/Service/JiraCollectorService.php +++ b/src/App/Service/JiraCollectorService.php @@ -69,7 +69,7 @@ class JiraCollectorService * @param bool $forceReload * @return KanbanBoard */ - public function getKanbanBoard(int $teamId = null, bool $forceReload = false): KanbanBoard + public function getKanbanBoard(int $teamId, bool $forceReload = false): KanbanBoard { $team = $this->teamService->getTeam($teamId); $teamName = $team->getName();