chore: add custom folder prompt (#3961)

* chore: add custom folder prompt

* chore: zip collab db

* chore: fix test

* chore: add test

* chore: fmt

* chore: fmt

* chore: fmt
This commit is contained in:
Nathan.fooo
2023-11-20 20:54:47 +08:00
committed by GitHub
parent 6f83f41c2d
commit b9ecc7ceb6
67 changed files with 1423 additions and 551 deletions

View File

@ -117,6 +117,10 @@ impl DatabaseEditor {
///
#[tracing::instrument(level = "debug", skip_all)]
pub async fn close_view_editor(&self, view_id: &str) -> bool {
if let Some(database) = self.database.try_lock() {
let _ = database.flush();
}
self.database_views.close_view(view_id).await
}