headless_lms_models::course_background_questions

Function get_background_questions_and_answers

Source
pub async fn get_background_questions_and_answers(
    conn: &mut PgConnection,
    course_instance: &CourseInstance,
    user_id: Uuid,
) -> ModelResult<CourseBackgroundQuestionsAndAnswers>
Expand description

Return all background questions (and existing answers) that will need to be asked when the user enrolls on a course instance. Includes both instance specific questions and course specific questions.