Skip to content

Commit 91bb708

Browse files
committed
issue #2246 has been fixed.
1 parent bbe77d6 commit 91bb708

File tree

2 files changed

+375
-31
lines changed

2 files changed

+375
-31
lines changed

packages/Webkul/Automation/src/Helpers/Entity/AbstractEntity.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,11 @@ public function triggerWebhook(int $webhookId, mixed $entity)
220220
$webhook = $this->webhookRepository->findOrFail($webhookId);
221221

222222
$payload = [
223-
'method' => $webhook->method,
224-
'end_point' => $this->replacePlaceholders($entity, $webhook->end_point),
225-
'payload' => $this->replacePlaceholders($entity, json_encode($webhook->payload)),
226-
'headers' => $this->replacePlaceholders($entity, json_encode($webhook->headers)),
223+
'method' => $webhook->method,
224+
'query_params' => $this->replacePlaceholders($entity, json_encode($webhook->query_params)),
225+
'end_point' => $this->replacePlaceholders($entity, $webhook->end_point),
226+
'payload' => $this->replacePlaceholders($entity, json_encode($webhook->payload)),
227+
'headers' => $this->replacePlaceholders($entity, json_encode($webhook->headers)),
227228
];
228229

229230
$this->webhookService->triggerWebhook($payload);

0 commit comments

Comments
 (0)