chore(api): drop unused uuid dep + redundant domain dev-dep; test internal exclusion + note list/count race
This commit is contained in:
@@ -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)?;
|
||||
|
||||
Reference in New Issue
Block a user