Skip to main content

update

Function update 

Source
pub async fn update(
    pool: &PgPool,
    actor: &Actor,
    id: Uuid,
    input: ChangeInput,
) -> AppResult<Change>
Expand description

Changes title, description and priority of a change.

§Invariants

  • Permission: CAD editor who is the author (or an administrator); the change is a draft or rejected (409 otherwise); a change the actor cannot see answers “not found”.
  • Locks: the change row (FOR UPDATE).
  • Audit: change.update.
  • Notifications / webhooks: none.
  • Atomic: one transaction.