Commit 549bb237 by Phạm Văn Đoan

test report

parent 3af952e2
......@@ -22,7 +22,7 @@ class CalculateReportCommand extends Command
*
* @var string
*/
protected $signature = 'calculate:report {type?} {--option=}';
protected $signature = 'calculate:report {type?}';
/**
* The console command description.
......@@ -49,7 +49,6 @@ class CalculateReportCommand extends Command
public function handle()
{
$type = $this->argument('type');
$option = $this->option('option');
if (empty($type) || !in_array($type, ['daily', 'weekly', 'monthly'])) {
$type = $this->choice('Chọn loại báo cáo ', ['daily', 'weekly', 'monthly']);
......
......@@ -87,7 +87,7 @@ class Kernel extends ConsoleKernel
$schedule->command('calculate:daily-listen')->dailyAt('1:00');
$schedule->command('calculate:daily-listen')->dailyAt('1:10');
$schedule->command('php artisan calculate:report daily')->dailyAt('8:35');
$schedule->command('php artisan calculate:report daily')->dailyAt('8:43');
$schedule->command('php artisan calculate:report weekly')->sundays();
$schedule->command('php artisan calculate:report monthly')->monthlyOn(21, '6:10');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment