Skip to content

Commit

Permalink
Fix bug in webhook url
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Aug 12, 2024
1 parent 2b3dd4d commit bbf959a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Registrar/WebhookRegistrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,13 @@ private function getWebhooks(): array
{
$webhooks = [];

/** @var Name $name */
foreach ([Name::StockAdjust, Name::PickOrderPacked] as $name) {
$webhooks[] = new Webhook(
name: $name,
url: $this->urlGenerator->generate(
name: 'setono_sylius_peak_global_webhook',
parameters: ['name' => $name],
parameters: ['name' => $name->value],
referenceType: UrlGeneratorInterface::ABSOLUTE_URL,
),
);
Expand Down

0 comments on commit bbf959a

Please sign in to comment.