diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 093932d5..300a4fd6 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -46,7 +46,7 @@ protected function schedule(Schedule $schedule) $schedule->job(new ProcessShanwickControllers())->cron('0 * * * *'); //Updated Hourly //Discord Update - $schedule->job(new DiscordAccountCheck())->everyHour(); + $schedule->job(new DiscordAccountCheck())->cron('0 * * * *'); //Updated Hourly //Roster Inactivity checks $schedule->job(new ProcessRosterInactivity())->dailyAt('23:55'); diff --git a/app/Http/Controllers/Training/SessionsController.php b/app/Http/Controllers/Training/SessionsController.php index 0350b9c9..a4f7fb11 100644 --- a/app/Http/Controllers/Training/SessionsController.php +++ b/app/Http/Controllers/Training/SessionsController.php @@ -81,7 +81,6 @@ public function createTrainingSession(Request $request) //Discord Notification in Training Thread $discord = new DiscordClient(); - $discord->sendMessage($session->student->user->id, '<@'.$session->student->user->discord_user_id.'>'); $discord->sendEmbedInTrainingThread($session->student->user->id, 'New Training Session Booked', 'A training session has been created for you on get('scheduled_time'))->timestamp.':F>.