feat: improve data center api typo & docs

This commit is contained in:
DarkSky
2023-01-03 20:46:38 +08:00
parent 72d38f1e70
commit 2ee99a37fb
4 changed files with 91 additions and 71 deletions

View File

@@ -18,7 +18,7 @@ const DynamicBlocksuite = ({
const openWorkspace: LoadWorkspaceHandler = async (workspaceId: string) => {
if (workspaceId) {
const dc = await getDataCenter();
return dc.getWorkspace(workspaceId, { providerId: 'affine' });
return dc.load(workspaceId, { providerId: 'affine' });
} else {
return null;
}