fix: server URL generation in ServerPatchCheck notification

This commit is contained in:
Cinzya 2025-10-26 02:50:41 +02:00
parent 2c8c9a5e3c
commit e29b517fef

View file

@ -16,7 +16,7 @@ class ServerPatchCheck extends CustomEmailNotification
public function __construct(public Server $server, public array $patchData)
{
$this->onQueue('high');
$this->serverUrl = route('server.security.patches', ['server_uuid' => $this->server->uuid]);
$this->serverUrl = base_url().'/server/'.$this->server->uuid.'/security/patches';
if (isDev()) {
$this->serverUrl = 'https://staging-but-dev.coolify.io/server/'.$this->server->uuid.'/security/patches';
}