Fix for 4bbb82 Job::dispatch doesnt return an int, so cannot be used for success status

This commit is contained in:
Deon George 2024-10-21 08:47:54 +11:00
parent 6bba18fc5f
commit 944053972b
2 changed files with 12 additions and 2 deletions

View File

@ -44,6 +44,11 @@ class CommBinkpSend extends Command
$mo = Mailer::where('name',self::ID)->singleOrFail();
return ($this->option('now')) ? Job::dispatchSync($ao,$mo) : Job::dispatch($ao,$mo);
if ($this->option('now'))
Job::dispatchSync($ao,$mo);
else
Job::dispatch($ao,$mo);
return self::SUCCESS;
}
}

View File

@ -44,6 +44,11 @@ class CommEMSISend extends Command
$mo = Mailer::where('name',self::ID)->singleOrFail();
return ($this->option('now')) ? Job::dispatchSync($ao,$mo) : Job::dispatch($ao,$mo);
if ($this->option('now'))
Job::dispatchSync($ao,$mo);
else
Job::dispatch($ao,$mo);
return self::SUCCESS;
}
}