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(
|
workspaceBloc.add(
|
||||||
UserWorkspaceEvent.createWorkspace(
|
UserWorkspaceEvent.createWorkspace(
|
||||||
name,
|
name,
|
||||||
AuthTypePB.Local,
|
AuthTypePB.Server,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
@ -291,14 +291,15 @@ impl UserManager {
|
|||||||
#[instrument(level = "info", skip(self), err)]
|
#[instrument(level = "info", skip(self), err)]
|
||||||
pub async fn delete_workspace(&self, workspace_id: &Uuid) -> FlowyResult<()> {
|
pub async fn delete_workspace(&self, workspace_id: &Uuid) -> FlowyResult<()> {
|
||||||
info!("delete workspace: {}", workspace_id);
|
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
|
self
|
||||||
.cloud_service()?
|
.cloud_service()?
|
||||||
.get_user_service()?
|
.get_user_service()?
|
||||||
.delete_workspace(workspace_id)
|
.delete_workspace(workspace_id)
|
||||||
.await?;
|
.await?;
|
||||||
let uid = self.user_id()?;
|
|
||||||
let conn = self.db_connection(uid)?;
|
|
||||||
delete_user_workspace(conn, workspace_id.to_string().as_str())?;
|
|
||||||
|
|
||||||
self
|
self
|
||||||
.user_workspace_service
|
.user_workspace_service
|
||||||
|
Loading…
x
Reference in New Issue
Block a user