Function headless_lms_models::course_modules::get_by_exercise_id
source · pub async fn get_by_exercise_id(
conn: &mut PgConnection,
exercise_id: Uuid
) -> ModelResult<CourseModule>
Expand description
Gets course module where the given exercise belongs to. This will result in an error in the case of an exam exercise.