From 7e1e9053f8eb730ba1c1ac61a529cbc7376fdbb7 Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Mon, 24 Aug 2026 12:38:05 +0800 Subject: [PATCH] fix(query): box transaction command errors --- src-tauri/src/commands/query.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src-tauri/src/commands/query.rs b/src-tauri/src/commands/query.rs index f06a47001d..ae0c03b8b5 100644 --- a/src-tauri/src/commands/query.rs +++ b/src-tauri/src/commands/query.rs @@ -26,7 +26,7 @@ struct ExecuteMultiProgress { #[derive(Debug, serde::Serialize)] #[serde(untagged)] pub enum ManualTransactionCommandError { - Structured(BackendError), + Structured(Box), Legacy(String), } @@ -476,9 +476,9 @@ pub async fn execute_in_manual_transaction( .await .map_err(|error| { if dbx_core::query::is_manual_transaction_session_expired_error(&error) { - ManualTransactionCommandError::Structured(BackendError::from_manual_transaction_session_expired( + ManualTransactionCommandError::Structured(Box::new(BackendError::from_manual_transaction_session_expired( dbx_core::query::MANUAL_TRANSACTION_IDLE_TIMEOUT_SECS, - )) + ))) } else { ManualTransactionCommandError::Legacy(error) }