* fixed the issue with cli command, so it only updates jira cache, where there is an id
This commit is contained in:
parent
8c2b7fe548
commit
9d3fa5fa9d
@ -36,8 +36,8 @@ class UpdatePageCachesCommand extends Command
|
|||||||
$teams = $this->teamService->listTeams();
|
$teams = $this->teamService->listTeams();
|
||||||
foreach ($teams as $team) {
|
foreach ($teams as $team) {
|
||||||
set_time_limit(30);
|
set_time_limit(30);
|
||||||
if (0 < ($teamId = $team->getId())) {
|
if (null !== $team->getFilterId()) {
|
||||||
$this->jiraCollectorService->getKanbanBoard($teamId,true);
|
$this->jiraCollectorService->getKanbanBoard($team->getId(), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -69,7 +69,7 @@ class JiraCollectorService
|
|||||||
* @param bool $forceReload
|
* @param bool $forceReload
|
||||||
* @return KanbanBoard
|
* @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);
|
$team = $this->teamService->getTeam($teamId);
|
||||||
$teamName = $team->getName();
|
$teamName = $team->getName();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user