From 681c3514b90bf7657ab399f674dc35ed09d74455 Mon Sep 17 00:00:00 2001 From: kjporter Date: Fri, 6 Dec 2024 11:03:13 -0500 Subject: [PATCH] Update PilotPassportActivityUpdate.php --- app/Console/Commands/PilotPassportActivityUpdate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;