mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: search improvements (#5473)
* fix: search workspace sync indexing * chore: update collab rev temporarily * feat: revert comparison and implement index check * chore: fixes after merg * feat: clean code + support delete workspace * fix: improve code * fix: improvements after merge * fix: cargo fmt * fix: remove indices for workspace method * fix: clippy errors * fix: clippy too many arguments
This commit is contained in:
@ -261,7 +261,11 @@ impl UserManager {
|
||||
// delete workspace from local sqlite db
|
||||
let uid = self.user_id()?;
|
||||
let conn = self.db_connection(uid)?;
|
||||
delete_user_workspaces(conn, workspace_id)
|
||||
delete_user_workspaces(conn, workspace_id)?;
|
||||
|
||||
self
|
||||
.user_workspace_service
|
||||
.did_delete_workspace(workspace_id.to_string())
|
||||
}
|
||||
|
||||
#[instrument(level = "info", skip(self), err)]
|
||||
@ -275,6 +279,11 @@ impl UserManager {
|
||||
let uid = self.user_id()?;
|
||||
let conn = self.db_connection(uid)?;
|
||||
delete_user_workspaces(conn, workspace_id)?;
|
||||
|
||||
self
|
||||
.user_workspace_service
|
||||
.did_delete_workspace(workspace_id.to_string())?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user