test+refactor: audit-row assertions + uniform PATCH rollback (review follow-ups)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-05 21:04:09 +02:00
parent c9120848f5
commit 27caaa9787
3 changed files with 42 additions and 5 deletions
+4
View File
@@ -296,6 +296,8 @@ pub(crate) async fn update_term(
Ok(StatusCode::NO_CONTENT)
} else {
let _ = tx.rollback().await;
Err(StatusCode::NOT_FOUND)
}
}
@@ -410,6 +412,8 @@ pub(crate) async fn rename_vocabulary(
.map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?;
Ok(StatusCode::NO_CONTENT)
} else {
let _ = tx.rollback().await;
Err(StatusCode::NOT_FOUND)
}
}