Fix missing build logs

This commit is contained in:
Matej Bačo 2024-08-07 10:53:40 +02:00
parent 21ece879b2
commit 8e3fbfc00d

View file

@ -442,8 +442,8 @@ class Builds extends Action
$executor->getLogs(
deploymentId: $deployment->getId(),
projectId: $project->getId(),
callback: function ($logs) use (&$response, &$build, $dbForProject, $allEvents, $project) {
if ($response === null) {
callback: function ($logs) use (&$response, &$err, &$build, $dbForProject, $allEvents, $project) {
if ($response === null && $err === null) {
$build = $dbForProject->getDocument('builds', $build->getId());
if ($build->isEmpty()) {