Function headless_lms_models::pages::reorder_pages
source · pub async fn reorder_pages(
conn: &mut PgConnection,
pages: &[Page],
course_id: Uuid
) -> ModelResult<()>
Expand description
Makes the order numbers and chapter ids to match in the db what’s in the page objects Assumes that all pages belong to the given course id