Refactor broadcast notifications (#1402)

* Refactor broadcast notifications

* StyleCI fixes

* Fix the planned_distance accidental changes
This commit is contained in:
Nabeel S
2022-02-08 15:07:02 -05:00
committed by GitHub
parent 6cfbd91328
commit cb38f2ad90
17 changed files with 290 additions and 119 deletions

View File

@@ -243,7 +243,7 @@ class PirepService extends Service
// Copy some fields over from Flight if we have it
if ($pirep->flight) {
$pirep->planned_distance = $pirep->flight->distance;
$pirep->planned_distance = $pirep->flight->planned_distance;
$pirep->planned_flight_time = $pirep->flight->flight_time;
}
@@ -336,7 +336,7 @@ class PirepService extends Service
// Copy some fields over from Flight if we have it
if ($pirep->flight) {
$pirep->planned_distance = $pirep->flight->distance;
$pirep->distance = $pirep->flight->distance;
$pirep->planned_flight_time = $pirep->flight->flight_time;
}