fix(mongodb): guard aggregate execution paths
This commit is contained in:
1 parent
c56bcb8e2d
commit
5ea146e08e
19 files changed
+166
-26
No files matched your search
@@ -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)?;
|
||||
|
||||
Reference in new issue
Block a user