chore(api): drop unused uuid dep + redundant domain dev-dep; test internal exclusion + note list/count race

This commit is contained in:
2026-06-02 13:55:01 +02:00
parent 3c4ada202f
commit 720c7ddbbf
3 changed files with 26 additions and 14 deletions
+3
View File
@@ -86,6 +86,9 @@ pub(crate) async fn list_objects(
) -> Result<Json<PublicObjectPage>, StatusCode> {
let (limit, offset) = (page.limit(), page.offset());
// `items` and `total` come from two separate queries; under concurrent
// publish/unpublish they can momentarily disagree by one — acceptable for a
// public read surface.
let objects = db::catalog::list_public_objects(state.db.pool(), limit, offset)
.await
.map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?;