Skip to main content

resolve_preview

Function resolve_preview 

Source
pub async fn resolve_preview(
    conn: &mut PgConnection,
    changeset: &AgentChangeset,
    page_id: Uuid,
) -> ModelResult<PagePreview>
Expand description

What a preview link of page_id in changeset renders. The caller checks that the changeset is the link’s user’s and that they may still edit its course. Errors with NotFound if the changeset is no longer open or if the page does not exist in it or live.