File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -418,20 +418,10 @@ public function loadStaticTasks(): self
418418 */
419419 public function onAddAction (GenericEvent $ event ): bool
420420 {
421- //====================================================================//
422- // Validate Event
423- if (!($ event instanceof AddEvent) && !($ event instanceof InsertEvent)) {
424- return false ;
425- }
426421 $ job = $ event ->getSubject ();
427422 //====================================================================//
428- // Validate Subject
429- if (!($ job instanceof AbstractJob)) {
430- return false ;
431- }
432- //====================================================================//
433423 // Validate Job
434- if (!$ this ->validate ($ job )) {
424+ if (!( $ job instanceof AbstractJob) || ! $ this ->validate ($ job )) {
435425 $ job ->setInputs (array ("error " => "Invalid Job: Rejected " ));
436426 $ this ->logger ->error ("Tasks Manager: Invalid Job Received >> Rejected " );
437427
You can’t perform that action at this time.
0 commit comments