headless_lms_models::library::copying

Function copy_course_chapters

Source
async fn copy_course_chapters(
    tx: &mut PgConnection,
    namespace_id: Uuid,
    parent_course_id: Uuid,
) -> ModelResult<()>
Expand description

After this one set_chapter_front_pages needs to be called to get these to point to the correct front pages.