Skip to content

Commit

Permalink
fix: use endpoint from event
Browse files Browse the repository at this point in the history
  • Loading branch information
samatcd authored Sep 22, 2022
1 parent ce57c4e commit d994dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebhookRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function trigger(string $event, array $payload = []): void
continue;
}

$this->dispatchWebhook($endpoint, $endpoint->getWebhookPayload($event, $payload));
$this->dispatchWebhook($event->endpoint, $event->endpoint->getWebhookPayload($event, $payload));
}
}

Expand Down

0 comments on commit d994dcc

Please sign in to comment.