update rm deadcode
This commit is contained in:
@@ -39,7 +39,7 @@ class ServiceHosting extends Command
|
||||
$Hosting = ModuleHosting::with('Server')->where('customer_id',$item->id)->first();
|
||||
if ($Hosting)
|
||||
{
|
||||
$ServiceExpiry = Carbon::now()->diffInDays(Carbon::parse($Hosting->next_due_date),false);
|
||||
$ServiceExpiry = (int) Carbon::now()->diffInDays(Carbon::parse($Hosting->next_due_date), false);
|
||||
if ($ServiceExpiry <= 0)
|
||||
{
|
||||
$jobs[] = new HostingJobs($item->id,'Suspend');
|
||||
|
||||
Reference in New Issue
Block a user