Files
coolify/app/Events/ServerPatchCheckFinished.php
Andras Bacsai 30a8e3357a fix(server): refresh the server page after background validation
ServerValidated and ServerPatchCheckFinished used broadcastAs(), so Echo
listeners without a leading dot never matched them. Close the validation
dialog that a background job opened when the job finishes.
2026-11-05 12:53:54 +01:00

28 lines
694 B
PHP

<?php
namespace App\Events;
use App\Traits\BroadcastsToTeam;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class ServerPatchCheckFinished implements ShouldBroadcast
{
use BroadcastsToTeam, Dispatchable, InteractsWithSockets, SerializesModels;
public function __construct(?int $teamId, public ?string $serverUuid = null)
{
$this->teamId = $teamId;
}
/**
* @return array{serverUuid: string|null}
*/
public function broadcastWith(): array
{
return ['serverUuid' => $this->serverUuid];
}
}