async fn create_automatic_course_module_completion_if_eligible(
conn: &mut PgConnection,
course_module: &CourseModule,
course_instance_id: Uuid,
user_id: Uuid,
) -> ModelResult<Option<CourseModuleCompletion>>
Expand description
Creates completion for the user if eligible and previous one doesn’t exist. Returns an Option containing the completion if one exists after calling this function.