mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
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.
31 lines
759 B
PHP
31 lines
759 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 ServerValidated implements ShouldBroadcast
|
|
{
|
|
use BroadcastsToTeam, Dispatchable, InteractsWithSockets, SerializesModels;
|
|
|
|
public ?string $serverUuid = null;
|
|
|
|
public function __construct(?int $teamId, ?string $serverUuid = null)
|
|
{
|
|
$this->teamId = $teamId;
|
|
$this->serverUuid = $serverUuid;
|
|
}
|
|
|
|
public function broadcastWith(): array
|
|
{
|
|
return [
|
|
'teamId' => $this->teamId,
|
|
'serverUuid' => $this->serverUuid,
|
|
];
|
|
}
|
|
}
|