mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 10:02:33 +03:00
The webhook actions are optional
This commit is contained in:
parent
c33ebeded2
commit
9007e977fa
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ class Webhooks_model extends EA_Model
|
||||||
*/
|
*/
|
||||||
public function validate(array $webhook): void
|
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));
|
throw new InvalidArgumentException('Not all required fields are provided: ' . print_r($webhook, true));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue