feat: add public workspace page api (#1791)

This commit is contained in:
Himself65 authored and GitHub committed 2023-04-03 06:15:39 -05:00
1 parent 196b9f2dbb
commit 5dbbabae57
3 files changed
+133 -16

No files matched your search

+1 -3
View File
@@ -66,9 +66,7 @@ export const AffinePlugin: WorkspacePlugin<WorkspaceFlavour.AFFINE> = {
const binary = BlockSuiteWorkspace.Y.encodeStateAsUpdate(
blockSuiteWorkspace.doc
);
const { id } = await affineApis.createWorkspace(
new Blob([binary.buffer])
);
const { id } = await affineApis.createWorkspace(binary);
// fixme: syncing images
const newWorkspaceId = id;