pub async fn get_total_users_completed_course_by_instance(
conn: &mut PgConnection,
course_id: Uuid,
) -> ModelResult<HashMap<Uuid, CountResult>>
Expand description
Total unique users who have completed the course, grouped by course instance.
Returns a HashMap where keys are course instance IDs and values are the completion counts for that instance.