Commit fb424b28 by Phạm Văn Đoan

fixbug tổng hợp BXH tuần

parent 0feea417
......@@ -84,12 +84,12 @@ class Kernel extends ConsoleKernel
$schedule->command('crawler:get-listen zing')->dailyAt('22:45');
$schedule->command('crawler:get-listen zing --limit=-1')->dailyAt('22:50');
$schedule->command('calculate:daily-listen')->dailyAt('5:00');
$schedule->command('calculate:daily-listen')->dailyAt('5:10');
$schedule->command('calculate:daily-listen')->dailyAt('2:00');
$schedule->command('calculate:daily-listen')->dailyAt('2:10');
$schedule->command('calculate:report daily')->dailyAt('5:30');
$schedule->command('calculate:report weekly')->sundays();
$schedule->command('calculate:report monthly')->monthlyOn(21, '6:10');
$schedule->command('calculate:report daily')->dailyAt('3:05');
$schedule->command('calculate:report weekly')->dailyAt('4:05');
$schedule->command('calculate:report monthly')->monthlyOn(21, '5:05');
$schedule->command('queue:work --once --timeout=120')->everyMinute()->withoutOverlapping();
}
......
......@@ -24,7 +24,9 @@ class Constants
const TABLE_PERMISSIONS = 'permissions';
const TABLE_REPORT_VIEWS_DAILY = 'report_views_daily';
const TABLE_REPORT_VIEWS_MONTHLY_NEW = 'report_views_monthly_new';
const TABLE_REPORT_VIEWS_WEEKLY = 'report_views_weekly';
const TABLE_REPORT_VIEWS_WEEKLY_NEW = 'report_views_weekly_new';
const TABLE_REPORTS_VIEWS_MONTHLY = 'reports_views_monthly';
const TABLE_ROLE_USER = 'role_user';
......
......@@ -7,7 +7,7 @@ use Illuminate\Database\Eloquent\Model;
class MonthlyReport extends Model
{
protected $table = Constants::TABLE_REPORTS_VIEWS_MONTHLY;
protected $table = Constants::TABLE_REPORT_VIEWS_MONTHLY_NEW;
public $timestamps = true;
......
......@@ -7,7 +7,7 @@ use Illuminate\Database\Eloquent\Model;
class WeeklyReport extends Model
{
protected $table = Constants::TABLE_REPORT_VIEWS_WEEKLY;
protected $table = Constants::TABLE_REPORT_VIEWS_WEEKLY_NEW;
public $timestamps = true;
......
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