From 1f791b7b2586dcb65549946f3f75634da6cb0ae3 Mon Sep 17 00:00:00 2001 From: Joshua M <91457812+JoshuaMicallefYBSU@users.noreply.github.com> Date: Sat, 17 Aug 2024 11:33:58 +1000 Subject: [PATCH 1/2] Update InstructingController.php --- app/Http/Controllers/Training/InstructingController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Training/InstructingController.php b/app/Http/Controllers/Training/InstructingController.php index 7fe754b4..57e26be4 100644 --- a/app/Http/Controllers/Training/InstructingController.php +++ b/app/Http/Controllers/Training/InstructingController.php @@ -493,7 +493,7 @@ public function certifyStudent($cid) // Update Thread Tag to match site $discord = new DiscordClient(); - $discord->EditThreadTag('Completed', $student->user->fullName('FLC')); + $discord->EditThreadTag('Endorsed', $student->user->fullName('FLC')); // Close Training Thread Out & Send Completion Message $discord = new DiscordClient(); From 703800a68b163676b54aa7b7d121f4d4f6b68e46 Mon Sep 17 00:00:00 2001 From: Joshua M <91457812+JoshuaMicallefYBSU@users.noreply.github.com> Date: Sat, 17 Aug 2024 11:38:37 +1000 Subject: [PATCH 2/2] Update InstructingController.php --- app/Http/Controllers/Training/InstructingController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Training/InstructingController.php b/app/Http/Controllers/Training/InstructingController.php index 57e26be4..20de913d 100644 --- a/app/Http/Controllers/Training/InstructingController.php +++ b/app/Http/Controllers/Training/InstructingController.php @@ -493,11 +493,10 @@ public function certifyStudent($cid) // Update Thread Tag to match site $discord = new DiscordClient(); - $discord->EditThreadTag('Endorsed', $student->user->fullName('FLC')); + $discord->EditThreadTag('Completed', $student->user->fullName('FLC')); // Close Training Thread Out & Send Completion Message - $discord = new DiscordClient(); - $discord->closeTrainingThread($student->user->fullName('FLC'), 'certify'); + $discord = new DiscordClient(); $discord->closeTrainingThread($student->user->fullName('FLC'), 'certify'); // Update Roster with Certification Status $rosterMember = RosterMember::where('cid', $cid)->firstOrFail();