Skip to main content

save_recording

Function save_recording 

Source
pub async fn save_recording<T>(
    conn: &mut PgConnection,
    entity_type: ContentEntityType,
    entity_id: Uuid,
    author: HistoryAuthor,
    save: impl AsyncFnOnce(&mut PgConnection) -> ModelResult<T>,
) -> ModelResult<T>
Expand description

Runs save in a transaction and then records the entity’s state as record_current does.