mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
feat: add public workspace page api (#1791)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user