Skip to content

Commit

Permalink
Merge pull request #277 from czqoocavatsim/JoshuaMicallefYBSU-patch-2
Browse files Browse the repository at this point in the history
Update Roster & Fix Kernel Bug
  • Loading branch information
JoshuaMicallefYBSU authored Aug 15, 2024
2 parents ffd3398 + fec2e68 commit 37af685
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use App\Jobs\ProcessSessionLogging;
use App\Jobs\ProcessSessionReminders;
use App\Jobs\ProcessSoloCertExpiryWarnings;
use App\Job\ProcessShanwickController;
use App\Jobs\ProcessShanwickController;
use App\Models\Roster\RosterMember;
use App\Notifications\Network\OneWeekInactivityReminder;
use App\Notifications\Network\TwoWeekInactivityReminder;
Expand Down
16 changes: 8 additions & 8 deletions app/Http/Controllers/Roster/RosterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ class RosterController extends Controller
public function publicRoster()
{
// Get CZQO Roster
$roster = RosterMember::where('certification', '!=', 'not_certified')
$czqo_roster = RosterMember::where('certification', '!=', 'not_certified')
->select(['id', 'certification', 'active', 'user_id'])
->with('user:id,fname,lname,rating_short,display_fname,display_cid_only,display_last_name,division_name,division_code')
->get();

// Get EGGX Roster
// $shanwick_controllers = ShanwickController::all();
$shanwick_controllers = ShanwickController::all();

// // Transform EGGX data to Eloquent-like objects
// $eggx_roster = $shanwick_controllers->map(function($controller) {
// return $this->transformShanwickControllerToRoster($controller);
// });
// Transform EGGX data into Eloquent Model (For Full Name etc)
$eggx_roster = $shanwick_controllers->map(function($controller) {
return $this->transformShanwickControllerToRoster($controller);
});

// // Combine Data
// $roster = $czqo_roster->concat($eggx_roster);
// Combine Data
$roster = $czqo_roster->concat($eggx_roster);

// return $roster;

Expand Down

0 comments on commit 37af685

Please sign in to comment.