Skip to main content

patch_deviation

Function patch_deviation 

Source
pub async fn patch_deviation(
    pool: &PgPool,
    actor: &Actor,
    id: Uuid,
    patch: DeviationPatch,
) -> AppResult<Deviation>
Expand description

Changes the given fields of a deviation of an as-built revision checked out by the actor. The stored deviation is read and merged while the revision row is locked – every writer of a deviation holds that lock – so two concurrent changes cannot overwrite each other’s fields.