Skip to main content

delete_chapter

Function delete_chapter 

Source
pub async fn delete_chapter(
    conn: &mut PgConnection,
    chapter_id: Uuid,
    author: HistoryAuthor,
) -> ModelResult<DatabaseChapter>
Expand description

Deletes the chapter with its pages and exercises, and records the deletions in the history of the chapter and its pages.