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.

23 lines
467 B

3 years ago
3 years ago
  1. <?php
  2. namespace App\SearchDisplace\Webhooks;
  3. use App\SearchDisplace\Ingest\HandleReceivedDocument;
  4. use Spatie\WebhookClient\ProcessWebhookJob;
  5. class HandleRequest extends ProcessWebhookJob
  6. {
  7. public function handle()
  8. {
  9. $payload = $this->webhookCall->payload;
  10. try {
  11. (new HandleReceivedDocument($payload))->handle();
  12. return true;
  13. } catch (\Exception $exception) {
  14. return false;
  15. }
  16. }
  17. }