Fixed schedule build command. Issue #125.

This commit is contained in:
Dmitry Khomutov 2017-10-11 18:55:03 +07:00
parent 97c7423013
commit ca0f7b4182

View file

@ -69,7 +69,8 @@ class ScheduleBuildCommand extends Command
$difference = new \DateInterval("P{$sinceDays}D");
$date->sub($difference);
$projects = $this->projectStore->getAll()['items'];
$projects = $this->projectStore->getAll();
$projects = $projects['items'];
/** @var Project $project */
foreach ($projects as $project) {
$latestBuild = $this->buildStore->getLatestBuilds($project->getId(), 1);