pub async fn resolve_published_course_preview(
conn: &mut PgConnection,
course_id: Uuid,
page_id: Option<Uuid>,
) -> ModelResult<PagePreview>Expand description
What the preview link of the whole published course renders: page_id, or the first page
without one, with all pages to switch between. The caller checks the same things as for
resolve_published_preview.