Repo for the search and displace core module including the interface to select files and search and displace operations to run on them.
https://searchanddisplace.com
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
466 B
22 lines
466 B
<?php
|
|
|
|
namespace App\SearchDisplace\Webhooks;
|
|
|
|
use App\SearchDisplace\Ingest\HandleReceivedDocument;
|
|
use Spatie\WebhookClient\ProcessWebhookJob;
|
|
|
|
class HandleRequest extends ProcessWebhookJob
|
|
{
|
|
public function handle()
|
|
{
|
|
$payload = $this->webhookCall->payload;
|
|
|
|
try {
|
|
(new HandleReceivedDocument($payload))->handle();
|
|
|
|
return true;
|
|
} catch (\Exception $exception) {
|
|
return false;
|
|
}
|
|
}
|
|
}
|