Skip to main content

cancel_unsent_for_course_module

Function cancel_unsent_for_course_module 

Source
pub async fn cancel_unsent_for_course_module(
    conn: &mut PgConnection,
    course_module_id: Uuid,
    actor_user_id: Uuid,
) -> ModelResult<i64>
Expand description

Cancels the module’s registrations that have not been sent to Sisu, for when a teacher stops its completions being registered there. Rows Sisu may already hold are left alone. Returns how many moved.