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

+10 -2
View File
@@ -52,9 +52,17 @@ pub async fn mongo_aggregate_documents(
database: String,
collection: String,
pipeline_json: String,
max_rows: Option<usize>,
) -> Result<MongoDocumentResult, String> {
dbx_core::mongo_ops::mongo_aggregate_documents_core(&state, &connection_id, &database, &collection, &pipeline_json)
.await
dbx_core::mongo_ops::mongo_aggregate_documents_core(
&state,
&connection_id,
&database,
&collection,
&pipeline_json,
max_rows,
)
.await
}
#[tauri::command]