Skip to content

Commit

Permalink
The webhook actions are optional
Browse files Browse the repository at this point in the history
  • Loading branch information
alextselegidis committed May 11, 2024
1 parent c9bb9e8 commit 0706d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Webhooks_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function save(array $webhook): int
*/
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));
}
}
Expand Down

0 comments on commit 0706d3f

Please sign in to comment.