mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-09-26 00:40:13 +00:00
chore: update template
This commit is contained in:
parent
9e5a6df52c
commit
c9ca6c6cc8
@ -389,7 +389,7 @@ class _CreateWorkspaceButton extends StatelessWidget {
|
||||
workspaceBloc.add(
|
||||
UserWorkspaceEvent.createWorkspace(
|
||||
name,
|
||||
AuthTypePB.Local,
|
||||
AuthTypePB.Server,
|
||||
),
|
||||
);
|
||||
},
|
||||
|
@ -291,14 +291,15 @@ impl UserManager {
|
||||
#[instrument(level = "info", skip(self), err)]
|
||||
pub async fn delete_workspace(&self, workspace_id: &Uuid) -> FlowyResult<()> {
|
||||
info!("delete workspace: {}", workspace_id);
|
||||
let uid = self.user_id()?;
|
||||
let conn = self.db_connection(uid)?;
|
||||
delete_user_workspace(conn, workspace_id.to_string().as_str())?;
|
||||
|
||||
self
|
||||
.cloud_service()?
|
||||
.get_user_service()?
|
||||
.delete_workspace(workspace_id)
|
||||
.await?;
|
||||
let uid = self.user_id()?;
|
||||
let conn = self.db_connection(uid)?;
|
||||
delete_user_workspace(conn, workspace_id.to_string().as_str())?;
|
||||
|
||||
self
|
||||
.user_workspace_service
|
||||
|
Loading…
x
Reference in New Issue
Block a user