Dont cache the mail:send query
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 39s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m42s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
Deon George 2024-05-25 10:33:35 +10:00
parent 2f24e13940
commit 3555e5a91c
2 changed files with 4 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class MailSend extends Command
/**
* Execute the console command.
*/
public function handle()
public function handle(): int
{
switch ($this->option('type')) {
case 'crash':
@ -48,5 +48,7 @@ class MailSend extends Command
default:
$this->error('Specify -T crash, normal or all');
}
return self::SUCCESS;
}
}

View File

@ -65,6 +65,7 @@ class MailSend #implements ShouldQueue
})
->groupBy('a.system_id','a.id','a.zone_id','addresses.region_id','a.host_id','a.node_id','a.point_id','addresses.hub_id','addresses.role')
->with(['system','zone.domain'])
->dontCache()
->get();
// Return the system we poll