fix: only encrypt if enable (#3236)

* fix: error page display issue

* fix: override document with empty data

* chore: add logs

* fix: encrypt errors

* fix: encrypt errors
This commit is contained in:
Nathan.fooo
2023-08-18 22:32:51 +08:00
committed by GitHub
parent 23a34af30f
commit de01bf70cd
20 changed files with 171 additions and 106 deletions

View File

@ -175,7 +175,7 @@ impl DatabaseManager {
let database = wdb
.get_database(database_id)
.await
.ok_or_else(FlowyError::record_not_found)?;
.ok_or_else(FlowyError::collab_not_sync)?;
let editor = Arc::new(DatabaseEditor::new(database, self.task_scheduler.clone()).await?);
editors.insert(database_id.to_string(), editor.clone());