Skip to content

Commit fa60427

Browse files
authored
Update WebhookService.php
1 parent 29b197f commit fa60427

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Service/WebhookService.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ public function get($webhookId, array $fields = array())
6060
public function create(Webhook &$webhook)
6161
{
6262
$data = $webhook->exportData();
63-
$request = $this->createRequest('/admin/webhooks.json', static::REQUEST_METHOD_POST);
64-
$response = $this->create($endpoint, 'GET', array(
63+
$response = $this->request('/admin/webhooks.json', 'POST', array(
6564
'webhook' => $data
6665
));
6766
$webhook->setData($response['webhook']);

0 commit comments

Comments
 (0)