Skip to main content

set_certificate_chosen

Function set_certificate_chosen 

Source
pub async fn set_certificate_chosen(
    conn: &mut PgConnection,
    course_module_completion_id: Uuid,
    chosen: bool,
) -> ModelResult<EnrolmentRouteAnswer>
Expand description

Sets or clears the student’s choice of the certificate over registering credits.

Errors with not-found when the student has not answered yet.