mirror of
https://github.com/coollabsio/coolify.git
synced 2026-09-26 01:10:30 -04:00
fix(notifications): add toWebhook payload to Hetzner deletion failure notification
This commit is contained in:
@@ -65,4 +65,16 @@ class HetznerDeletionFailed extends CustomEmailNotification
|
||||
color: SlackMessage::errorColor()
|
||||
);
|
||||
}
|
||||
|
||||
public function toWebhook(): array
|
||||
{
|
||||
return [
|
||||
'success' => false,
|
||||
'message' => "[ACTION REQUIRED] Failed to delete Hetzner server #{$this->hetznerServerId} from Hetzner Cloud. The server has been removed from Coolify, but may still exist in your Hetzner Cloud account.",
|
||||
'event' => 'hetzner_deletion_failed',
|
||||
'hetzner_server_id' => $this->hetznerServerId,
|
||||
'error' => $this->errorMessage,
|
||||
'url' => base_url().'/servers',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user