Skip to content

Commit 0b373e0

Browse files
committed
fix: failed to send webhook
1 parent 2d73f55 commit 0b373e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/CallWebhookJob.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class CallWebhookJob implements ShouldQueue
2323
{
2424
use Dispatchable, InteractsWithQueue, SerializesModels, Queueable;
2525

26-
public ?array $body;
2726
public ?string $endpoint;
2827
public ?string $eventName;
2928
public ?string $errorType;
@@ -106,7 +105,7 @@ protected function createWebhookLog()
106105
'webhook_id' => $this->webhook->id,
107106
'event_occurred_at' => $this->eventOccurredAt->toDateTimeString(),
108107
'endpoint' => $this->endpoint,
109-
'request_body' => $this->body,
108+
'request_body' => $this->getBody(),
110109
'sent_at' => $this->sentAt,
111110
'received_at' => $this->receivedAt,
112111
'response' => $this->response,

0 commit comments

Comments
 (0)