Skip to content

Commit

Permalink
fix: check controller sending email to all
Browse files Browse the repository at this point in the history
The previous fix made things worse, it got no position data and then send email to everyone connected on vatsim that we had email for >:D
  • Loading branch information
blt950 committed Oct 14, 2023
1 parent 291c992 commit fec85e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Console/Commands/CheckOnlineControllers.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ public function handle()
}

// Fetch which first four characters from ICAOs should look for based on positions database
$areasRaw = DB::raw('SELECT DISTINCT LEFT(callsign, 4) as prefix FROM positions;');
$areasRaw = DB::table('positions')
->select(DB::raw('DISTINCT LEFT(callsign, 4) as prefix'))
->get();

$areas = collect();
foreach ($areasRaw as $a) {
Expand Down

0 comments on commit fec85e2

Please sign in to comment.