mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
update honey trap cron
This commit is contained in:
@@ -47,11 +47,10 @@ class RemoveSeasonalSegmentCompany extends Command
|
||||
$seasonalSegment = SeasonalSegment::where('ending_on', '<=', Carbon::today())->get();
|
||||
|
||||
if (count($seasonalSegment)){
|
||||
$this->info(Carbon::now() . ' : Total Deleted: ' . count($seasonalSegment));
|
||||
|
||||
foreach ($seasonalSegment as $seasonalSegmentCompany) {
|
||||
$this->removesCompanyFromSegment->execute($seasonalSegmentCompany->company, $seasonalSegmentCompany->segment);
|
||||
$seasonalSegmentCompany->delete();
|
||||
$this->info(Carbon::now() . ' : Deleted id: ' . $seasonalSegmentCompany->id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ class Kernel extends ConsoleKernel
|
||||
|
||||
$schedule->command('seasonalSegmantCompany:remove')
|
||||
->dailyAt('01:00')
|
||||
->appendOutputTo (storage_path().'/logs/soft-delete-seasonal-segmant-company.log')
|
||||
->appendOutputTo(storage_path().'/logs/soft-delete-seasonal-segmant-company.log')
|
||||
->withoutOverlapping();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user