Skip to main content

update_chapter

Function update_chapter 

Source
pub async fn update_chapter(
    conn: &mut PgConnection,
    chapter_id: Uuid,
    chapter_update: ChapterUpdate,
    author_user_id: Uuid,
) -> ModelResult<DatabaseChapter>
Expand description

Saves the chapter’s editable fields and records the result in its history. A missing course_module_id keeps the chapter’s module.