pub async fn reorder_chapters(
conn: &mut PgConnection,
chapters: &[Chapter],
course_id: Uuid,
author_user_id: Uuid,
) -> ModelResult<()>Expand description
Saves new chapter numbers, moving the chapters’ page paths along with redirects from the old ones, and records the reordered chapters in their history.