Skip to content

Commit

Permalink
fix webhooks init
Browse files Browse the repository at this point in the history
  • Loading branch information
ksvirkou-hubspot committed Aug 21, 2020
1 parent 91a07ac commit 5c69e93
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
;

$appId = getEnvOrException('HUBSPOT_APPLICATION_ID');
$appUrl = UrlHelper::generateServerUri().'/webhooks/handle.php';

$subscriptions = $webhooksClient->subscriptionsApi()->getAll($appId);

Expand All @@ -25,7 +26,7 @@
WebhooksHelper::updateSubscriptions($appId, $activeSubscriptions, false);

$request = new SettingsChangeRequest();
$request->setTargetUrl(UrlHelper::generateServerUri().'/webhooks/handle.php');
$request->setTargetUrl($appUrl);

$response = $webhooksClient->settingsApi()
->configure($appId, $request)
Expand Down

0 comments on commit 5c69e93

Please sign in to comment.