Skip to content

Commit

Permalink
Update ProgressService.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mako321 authored Nov 28, 2024
1 parent 3f3b07f commit 36c8aa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Services/ProgressService.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ private function filterForStartedCourses(Builder $query, int $userId): Builder
->where('course_progress.user_id', $userId);
})
->whereColumn('lessons.course_id', 'courses.id')
->where('course_progress.status', ProgressStatus::IN_PROGRESS);
->where('course_progress.status', ProgressStatus::IN_PROGRESS)
->orWhereNull('course_progress.finished_at');
});
}

Expand Down

0 comments on commit 36c8aa3

Please sign in to comment.