From 30b8b127039c6c5ac0aa255e4ec9962c9a480a3b Mon Sep 17 00:00:00 2001 From: EYHN Date: Wed, 27 Mar 2024 04:25:23 +0000 Subject: [PATCH] fix(infra): fix sqlite not save data (#6336) SQLiteDB will not save subdoc data that does not exist on rootdoc, so we must save rootdoc first, and then save subdoc --- packages/common/infra/src/workspace/engine/index.ts | 1 + 1 file changed, 1 insertion(+) 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); }