fix(mongodb): guard aggregate execution paths

This commit is contained in:
徐文彬 committed 2026-05-28 21:29:08 +08:00
1 parent c56bcb8e2d
commit 5ea146e08e
19 files changed
+166 -26

No files matched your search

+2
View File
@@ -39,6 +39,7 @@ pub struct MongoAggregateRequest {
pub database: String,
pub collection: String,
pub pipeline_json: String,
pub max_rows: Option<usize>,
}
#[derive(Deserialize)]
@@ -147,6 +148,7 @@ pub async fn aggregate_documents(
&req.database,
&req.collection,
&req.pipeline_json,
req.max_rows,
)
.await
.map_err(AppError)?;