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(infra): fix sqlite not save data (#6336)

EYHN30b8b127039c
diff --git a/packages/common/infra/src/workspace/engine/index.ts b/packages/common/infra/src/workspace/engine/index.ts
index 50b8b46d34..645e16046d 100644
--- a/packages/common/infra/src/workspace/engine/index.ts
+++ b/packages/common/infra/src/workspace/engine/index.ts
@@ -42,6 +42,7 @@ export class WorkspaceEngine {
blob: status,
};
});
+ this.doc.setPriority(yDoc.guid, 100);
this.doc.addDoc(yDoc);
}