Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

feat: update invite function name

MingLiang Wang7e771756793f
diff --git a/packages/data-center/src/datacenter.ts b/packages/data-center/src/datacenter.ts
index f1eb556ecf..d592d2f480 100644
--- a/packages/data-center/src/datacenter.ts
+++ b/packages/data-center/src/datacenter.ts
@@ -255,12 +255,17 @@ export class DataCenter {
}
}
- public async inviteMember(id: string, email: string) {
- const workspaceInfo = this._workspaceUnitCollection.find(id);
+ /**
+ * invite the new member to the workspace
+ * @param {string} workspaceId workspace id
+ * @param {string} email
+ */
+ public async inviteMember(workspaceId: string, email: string) {
+ const workspaceInfo = this._workspaceUnitCollection.find(workspaceId);
assert(workspaceInfo, 'Workspace not found');
const provider = this.providerMap.get(workspaceInfo.provider);
if (provider) {
- await provider.invite(id, email);
+ await provider.invite(workspaceId, email);
}
}