Skip to content

Commit

Permalink
Merge pull request #369 from czqoocavatsim/JoshuaBranch
Browse files Browse the repository at this point in the history
Change
  • Loading branch information
JoshuaMicallefYBSU authored Oct 20, 2024
2 parents 048ea70 + 0b3c72f commit b436e35
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
18 changes: 9 additions & 9 deletions app/Jobs/DiscordAccountCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit b436e35

Please sign in to comment.