Skip to content

Commit

Permalink
More fixing :)))
Browse files Browse the repository at this point in the history
  • Loading branch information
blt950 committed Jan 15, 2023
1 parent 8db55b5 commit 2d2875e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Console/Commands/CheckOnlineControllers.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function handle()
$vatsimData = Http::get($dataUri)['controllers'];

foreach($vatsimData as $d){
if(preg_match($areasRegex, $d->callsign)){
if(preg_match($areasRegex, $d['callsign'])){
// Lets check this user
$this->info("Checking user ".$d['cid']);
$user = User::find($d['cid']);
Expand Down Expand Up @@ -92,7 +92,7 @@ public function handle()
}
}

$user->notify(new InactiveOnlineStaffNotification($sendToStaff, $user, $d->callsign, $d->logon_time));
$user->notify(new InactiveOnlineStaffNotification($sendToStaff, $user, $d['callsign'], $d['logon_time']));

} else {
$this->info($user->name.' is inactive. Supressing notification due to one already been sent recently.');
Expand Down

0 comments on commit 2d2875e

Please sign in to comment.