File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 88use App \Settings \NotificationSettings ;
99use App \Telegram \TelegramNotification ;
1010use Filament \Notifications \Notification ;
11- use Illuminate \Support \Facades \Http ;
1211use Illuminate \Support \Facades \Mail ;
1312use Spatie \WebhookServer \WebhookCall ;
1413
@@ -88,8 +87,13 @@ public function handle(ResultCreated $event): void
8887 "\nDownload: " .($ event ->result ->downloadBits / 1000000 ).' (Mbps) ' .
8988 "\nUpload: " .($ event ->result ->uploadBits / 1000000 ).' (Mbps) ' ,
9089 ];
91- // Send the request using Laravel's HTTP client
92- $ response = Http::post ($ webhook ['url ' ], $ payload );
90+ // Send the payload using WebhookCall
91+ WebhookCall::create ()
92+ ->url ($ webhook ['url ' ])
93+ ->payload ($ payload )
94+ ->doNotSign ()
95+ ->dispatch ();
96+
9397 }
9498 }
9599 }
Original file line number Diff line number Diff line change @@ -265,8 +265,13 @@ protected function discordChannel(ResultCreated $event): void
265265 'content ' => implode ("\n" , $ contentLines ),
266266 ];
267267
268- // Send the request using Laravel's HTTP client
269- $ response = Http::post ($ webhook ['url ' ], $ payload );
268+ // Send the payload using WebhookCall
269+ WebhookCall::create ()
270+ ->url ($ webhook ['url ' ])
271+ ->payload ($ payload )
272+ ->doNotSign ()
273+ ->dispatch ();
274+
270275 }
271276 }
272277 }
You can’t perform that action at this time.
0 commit comments