fix: lower video completion threshold from 99% to 95%

This commit is contained in:
JakkrapartXD 2026-02-06 12:56:50 +07:00
parent 438bc6cd23
commit ff63567e86

View file

@ -942,8 +942,8 @@ export class CoursesStudentService {
? (video_progress_seconds / video_duration_seconds) * 100 ? (video_progress_seconds / video_duration_seconds) * 100
: null; : null;
// Auto-complete at >= 99% OR when video_progress_seconds >= video_duration_seconds // Auto-complete at >= 95% OR when video_progress_seconds >= video_duration_seconds
const isCompleted = (progressPercentage !== null && progressPercentage >= 99) || const isCompleted = (progressPercentage !== null && progressPercentage >= 95) ||
!!(video_duration_seconds && video_progress_seconds >= video_duration_seconds); !!(video_duration_seconds && video_progress_seconds >= video_duration_seconds);
// Save video progress (without marking complete yet) // Save video progress (without marking complete yet)