Skip to main content

set_answers

pub async fn set_answers(
    conn: &mut PgConnection,
    course_module_completion_id: Uuid,
    user_id: Uuid,
    answers: &EnrolmentAnswers,
) -> ModelResult<EnrolmentRouteAnswer>
Expand description

Records the student’s answers, replacing any earlier ones.

Changing the route clears the Done that went with it: the confirmation was about enrolling the way the old route described, and it says nothing about the new one.