diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 1418d50a..698b5465 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -43,7 +43,7 @@ protected function schedule(Schedule $schedule) $schedule->job(new ProcessSessionLogging())->everyMinute(); //Inactivity checks - $schedule->job(new DiscordAccountCheck())->dailyAt('11:42'); + $schedule->job(new DiscordAccountCheck())->dailyAt('04:00'); //Inactivity checks $schedule->job(new ProcessRosterInactivity())->daily(); diff --git a/app/Jobs/DiscordAccountCheck.php b/app/Jobs/DiscordAccountCheck.php index 451ab1cd..5246f909 100644 --- a/app/Jobs/DiscordAccountCheck.php +++ b/app/Jobs/DiscordAccountCheck.php @@ -144,15 +144,15 @@ public function handle() array_push($rolesToAdd, $discordRoleIds['shanwick_certified']); } - //Enroute Controller - if($user->rating_short == 'C1'){ - array_push($rolesToAdd, $discordRoleIds['enroute']); - } - - //Enroute Controller - if($user->rating_short == 'C3'){ - array_push($rolesToAdd, $discordRoleIds['senior_enroute']); - } + // //Enroute Controller + // if($user->rating_short == 'C1'){ + // array_push($rolesToAdd, $discordRoleIds['enroute']); + // } + + // //Enroute Controller + // if($user->rating_short == 'C3'){ + // array_push($rolesToAdd, $discordRoleIds['senior_enroute']); + // } //Supervisor? if ($user->rating_short == 'SUP') {