mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Swap server ID for name in send.
This commit is contained in:
parent
13214e9e86
commit
9a88563916
@ -171,8 +171,10 @@ class ApiServersServerWebhooksManagementIndexHandler(BaseApiHandler):
|
||||
try:
|
||||
webhook_provider = WebhookFactory.create_provider(webhook["webhook_type"])
|
||||
webhook_provider.send(
|
||||
server_name=server_id, # TODO get actual server name
|
||||
title="Tickle Test Webhook",
|
||||
server_name=self.controller.servers.get_server_data_by_id(server_id)[
|
||||
"server_name"
|
||||
],
|
||||
title="Test Webhook",
|
||||
url=webhook["url"],
|
||||
message=webhook["body"],
|
||||
color=4915409, # Prestigious purple!
|
||||
|
Loading…
Reference in New Issue
Block a user