From 0706d3fdab68652cb9829a2937a668d214b4bc59 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sat, 11 May 2024 16:12:14 +0200 Subject: [PATCH] The webhook actions are optional --- application/models/Webhooks_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Webhooks_model.php b/application/models/Webhooks_model.php index e7eb1680..de190b26 100644 --- a/application/models/Webhooks_model.php +++ b/application/models/Webhooks_model.php @@ -72,7 +72,7 @@ class Webhooks_model extends EA_Model */ public function validate(array $webhook): void { - if (empty($webhook['name']) || empty($webhook['url']) || empty($webhook['actions'])) { + if (empty($webhook['name']) || empty($webhook['url'])) { throw new InvalidArgumentException('Not all required fields are provided: ' . print_r($webhook, true)); } }