chore: linter

This commit is contained in:
Christy Jacob 2023-06-02 17:59:20 +05:30
parent fac4b6f600
commit 36f1791a92
2 changed files with 2 additions and 2 deletions

View file

@ -280,7 +280,7 @@ $server->job()
/** Skip if a function has been triggered by its own execution */
$event = "functions.{$function->getId()}.executions.*";
if(in_array($event, $events)) {
if (in_array($event, $events)) {
Console::warning("Skipping function: {$function->getAttribute('name')} from project: {$project->getId()} triggered by self");
continue;
}

View file

@ -45,7 +45,7 @@ class Event extends Validator
* Identify all sections of the pattern.
*/
$type = $parts[0] ?? false;
if ($type == 'functions') {
$this->message = 'Triggering a function on a function event is not allowed.';
return false;