Deprecate singleOrFail() in favour of sole()
This commit is contained in:
@@ -27,8 +27,6 @@ class CommEMSISend extends Command
|
||||
*/
|
||||
protected $description = 'EMSI send';
|
||||
|
||||
private const ID = 'EMSI';
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
@@ -42,7 +40,7 @@ class CommEMSISend extends Command
|
||||
|
||||
Log::info(sprintf('CES:- Call EMSI send for %s',$ao->ftn));
|
||||
|
||||
$mo = Mailer::where('name',self::ID)->singleOrFail();
|
||||
$mo = Mailer::where('name','EMSI')->sole();
|
||||
|
||||
if ($this->option('now'))
|
||||
Job::dispatchSync($ao,$mo);
|
||||
|
Reference in New Issue
Block a user