Skip to content

Commit

Permalink
Merge branch 'dev' into updateModuleStub
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurpar06 authored May 24, 2024
2 parents 212cf7d + 677f3d5 commit 472381d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/Services/LegacyImporter/PirepImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ public function run($start = 0)
$count++;
}

if ($pirep->user && $pirep->state === PirepState::ACCEPTED) {
$pirep->user->update([
'last_pirep_id' => $pirep->id,
]);
}

if (!$pirep->airline || !$pirep->airline->journal) {
continue;
}
Expand Down

0 comments on commit 472381d

Please sign in to comment.