pub async fn discard(
conn: &mut PgConnection,
id: Uuid,
) -> ModelResult<AgentChangeset>Expand description
Drops an open changeset’s staged changes. Errors with RecordNotFound if it is not open.
pub async fn discard(
conn: &mut PgConnection,
id: Uuid,
) -> ModelResult<AgentChangeset>Drops an open changeset’s staged changes. Errors with RecordNotFound if it is not open.