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.

fix: sqlite db apply (#3409)

Peng Xiao2d41cce90f8d
diff --git a/packages/workspace/src/providers/sqlite-providers.ts b/packages/workspace/src/providers/sqlite-providers.ts
index 624121d87b..645cb6fa35 100644
--- a/packages/workspace/src/providers/sqlite-providers.ts
+++ b/packages/workspace/src/providers/sqlite-providers.ts
@@ -30,7 +30,7 @@ const createDatasource = (workspaceId: string): DatasourceDocAdapter => {
},
sendDocUpdate: async (guid, update) => {
return window.apis.db.applyDocUpdate(
- guid,
+ workspaceId,
update,
workspaceId === guid ? undefined : guid
);