feat(server): team mail sender (#9104)

fix AF-1914
This commit is contained in:
darkskygit
2024-12-12 07:33:31 +00:00
parent 350696c861
commit 69e5997608
19 changed files with 416 additions and 208 deletions

View File

@@ -88,7 +88,7 @@ export const CloudWorkspaceMembersPanel = ({
const onGenerateInviteLink = useCallback(
async (expireTime: WorkspaceInviteLinkExpireTime) => {
const link =
const { link } =
await permissionService.permission.generateInviteLink(expireTime);
return link;
},

View File

@@ -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();
}
}

View File

@@ -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,
},
});
}