Skip to main content

latest_version

Function latest_version 

Source
pub async fn latest_version(
    conn: &mut PgConnection,
    entity_id: Uuid,
    course_id: Option<Uuid>,
) -> ModelResult<Option<EntityVersion>>
Expand description

The newest page_history or entity_history row of the page, chapter, module or course settings with the id, only in the course when course_id is given. None for glossary terms and references, which have no history, and for entities never saved since history was introduced.