Skip to content

Commit

Permalink
Academy Transcript Rework - Part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonhasacat committed Jun 6, 2024
1 parent 5f32987 commit d52d1b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Console/Commands/PopulateAcademyCourseEnrollments.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ public function handle()
}
}

if ($e->status < AcademyCourseEnrollment::$STATUS_COMPLETED && $user->rating >= $e->course->rating) {
$e->status = AcademyCourseEnrollment::$STATUS_EXEMPT;
$hasChange = true;
}

if ($hasChange) {
$e->save();
}
Expand Down

0 comments on commit d52d1b4

Please sign in to comment.