Skip to content

Commit

Permalink
fix(webhook): process webhook when received
Browse files Browse the repository at this point in the history
INT-572
  • Loading branch information
joerivanveen committed Oct 22, 2024
1 parent 3862dc7 commit 16acf7a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/App/Webhook/PdkWebhookManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@ public function call($input, string $context = self::CONTEXT_WEBHOOK): Response
return $response;
}

$this->cronService->dispatch([$this, 'processWebhook'], $input);
/**
* TODO: restore async calling using cronService when this is fixed in WordPress
* besides fixing the wp_schedule_single_event, you also need a Facade to call processWebhook statically
* $this->cronService->dispatch([$this, 'processWebhook'], $input);
* For now: process immediately
*/
$this->processWebhook($input);

return $response;
}
Expand Down

0 comments on commit 16acf7a

Please sign in to comment.