Fix for 4bbb82 Job::dispatch doesnt return an int, so cannot be used for success status
This commit is contained in:
parent
6bba18fc5f
commit
944053972b
@ -44,6 +44,11 @@ class CommBinkpSend extends Command
|
|||||||
|
|
||||||
$mo = Mailer::where('name',self::ID)->singleOrFail();
|
$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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -44,6 +44,11 @@ class CommEMSISend extends Command
|
|||||||
|
|
||||||
$mo = Mailer::where('name',self::ID)->singleOrFail();
|
$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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user