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: fix api name and params

MingLiang Wang44e20cec3c3e
diff --git a/packages/data-center/src/datacenter.ts b/packages/data-center/src/datacenter.ts
index 8455737b5a..2782bf1cd6 100644
--- a/packages/data-center/src/datacenter.ts
+++ b/packages/data-center/src/datacenter.ts
@@ -191,8 +191,8 @@ export class DataCenter {
* @param {WorkspaceMeta} workspaceMeta workspace meta
* @param {BlocksuiteWorkspace} workspace workspace instance
*/
- public async resetWorkspaceMeta(
- { name, avatar }: WorkspaceMeta,
+ public async updateWorkspaceMeta(
+ { name, avatar }: Partial<WorkspaceMeta>,
workspace: BlocksuiteWorkspace
) {
assert(workspace?.room, 'No workspace to set meta');