Skip to main content

update_auditing_fields

Function update_auditing_fields 

Source
pub async fn update_auditing_fields(
    conn: &mut PgConnection,
    course_id: Uuid,
    modules: Vec<CourseAuditingModuleUpdate>,
) -> ModelResult<Vec<Uuid>>
Expand description

Sets the UH course codes, ECTS credits and registration link overrides of the course’s modules as the course auditing view edits them, leaving their other fields alone. Modules of other courses are ignored. Returns the ids of the updated modules.