diff --git a/app/Console/Commands/PilotPassportActivityUpdate.php b/app/Console/Commands/PilotPassportActivityUpdate.php index 02745a04..dc78e538 100644 --- a/app/Console/Commands/PilotPassportActivityUpdate.php +++ b/app/Console/Commands/PilotPassportActivityUpdate.php @@ -117,7 +117,7 @@ public static function checkPhaseComplete(RealopsPilot $pilot) { foreach ($challenges as $challenge) { $challenge_previously_awarded = PilotPassportAward::where('cid', $pilot->id)->where('challenge_id', $challenge->id)->first(); if ($challenge_previously_awarded) { - break; + continue; } $challenge_airfields = PilotPassportAirfieldMap::where('mapped_to', $challenge->id)->orderBy('airfield', 'asc')->pluck('airfield')->toArray(); $phase_complete = true;