mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-24 17:03:27 +03:00
The webhook actions are optional
This commit is contained in:
parent
c9bb9e85de
commit
0706d3fdab
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
|
||||
{
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue