mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-31 16:24:33 +00:00
fix(sidebar): 修复默认库过滤数据库树 (#175)
This commit is contained in:
@@ -66,9 +66,9 @@ pub async fn connect_db(
|
||||
|
||||
app.configs.lock().await.insert(connection_id.clone(), config.clone());
|
||||
|
||||
let pool_key = app.get_or_create_pool(&connection_id, config.database.as_deref()).await.map_err(AppError)?;
|
||||
app.get_or_create_pool(&connection_id, None).await.map_err(AppError)?;
|
||||
|
||||
Ok(Json(pool_key))
|
||||
Ok(Json(connection_id))
|
||||
}
|
||||
|
||||
pub async fn disconnect_db(
|
||||
|
||||
Reference in New Issue
Block a user