mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 01:56:27 +08:00
@@ -16,10 +16,7 @@ export class WorkspacePermissionService extends Service {
|
||||
}
|
||||
|
||||
async leaveWorkspace() {
|
||||
await this.store.leaveWorkspace(
|
||||
this.workspaceService.workspace.id,
|
||||
this.workspaceService.workspace.name$.value ?? ''
|
||||
);
|
||||
await this.store.leaveWorkspace(this.workspaceService.workspace.id);
|
||||
this.workspacesService.list.revalidate();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -180,7 +180,7 @@ export class WorkspacePermissionStore extends Store {
|
||||
/**
|
||||
* @param workspaceName for send email
|
||||
*/
|
||||
async leaveWorkspace(workspaceId: string, workspaceName: string) {
|
||||
async leaveWorkspace(workspaceId: string) {
|
||||
if (!this.workspaceServerService.server) {
|
||||
throw new Error('No Server');
|
||||
}
|
||||
@@ -188,7 +188,6 @@ export class WorkspacePermissionStore extends Store {
|
||||
query: leaveWorkspaceMutation,
|
||||
variables: {
|
||||
workspaceId,
|
||||
workspaceName,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user