Skip to content

Commit 2aecf2c

Browse files
Merge pull request #2262 from suraj-webkul/issue#2246
Issue #2246 has been fixed.
2 parents 3bf6cdb + ab0efc8 commit 2aecf2c

File tree

2 files changed

+374
-31
lines changed

2 files changed

+374
-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)