Function headless_lms_models::library::progressing::create_automatic_course_module_completion_if_eligible
source · async fn create_automatic_course_module_completion_if_eligible(
conn: &mut PgConnection,
course_module: &CourseModule,
course_instance_id: Uuid,
user_id: Uuid
) -> ModelResult<bool>
Expand description
Creates completion for the user if eligible and previous one doesn’t exist. Returns a boolean indicating whether a completion exists after calling this function.