mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
This reverts commit c1006c18c3
.
This commit is contained in:
@ -12,7 +12,7 @@ flowy-encrypt = { workspace = true }
|
||||
flowy-error = { workspace = true, features = ["impl_from_dispatch_error", "impl_from_sqlite", "impl_from_collab_folder", "impl_from_collab_persistence"] }
|
||||
flowy-folder-pub = { workspace = true }
|
||||
lib-infra = { workspace = true }
|
||||
flowy-notification = { workspace = true }
|
||||
flowy-notification = { workspace = true }
|
||||
flowy-server-pub = { workspace = true }
|
||||
lib-dispatch = { workspace = true }
|
||||
collab-integrate = { workspace = true }
|
||||
@ -43,7 +43,7 @@ validator = "0.16.0"
|
||||
unicode-segmentation = "1.10"
|
||||
fancy-regex = "0.11.0"
|
||||
uuid.workspace = true
|
||||
chrono = { workspace = true, default-features = false, features = ["clock"] }
|
||||
chrono = { workspace = true, default-features = false, features = ["clock"] }
|
||||
base64 = "^0.21"
|
||||
tokio-stream = "0.1.14"
|
||||
|
||||
|
@ -8,7 +8,6 @@ use flowy_error::{internal_error, ErrorCode, FlowyError, FlowyResult};
|
||||
use flowy_sqlite::kv::StorePreferences;
|
||||
use flowy_sqlite::DBConnection;
|
||||
use flowy_user_pub::session::Session;
|
||||
use std::path::PathBuf;
|
||||
use std::sync::{Arc, Weak};
|
||||
use tracing::{debug, error, info};
|
||||
|
||||
@ -73,11 +72,6 @@ impl AuthenticateUser {
|
||||
self.database.get_connection(uid)
|
||||
}
|
||||
|
||||
pub fn get_index_path(&self) -> PathBuf {
|
||||
let uid = self.user_id().unwrap_or(0);
|
||||
PathBuf::from(self.user_paths.user_data_dir(uid)).join("indexes")
|
||||
}
|
||||
|
||||
pub fn close_db(&self) -> FlowyResult<()> {
|
||||
let session = self.get_session()?;
|
||||
info!("Close db for user: {}", session.user_id);
|
||||
|
Reference in New Issue
Block a user