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
This commit is contained in:
EYHN 2024-03-27 04:25:23 +00:00
parent a3cc06f3bb
commit 30b8b12703
No known key found for this signature in database
GPG Key ID: 46C9E26A75AB276C

View File

@ -42,6 +42,7 @@ export class WorkspaceEngine {
blob: status, blob: status,
}; };
}); });
this.doc.setPriority(yDoc.guid, 100);
this.doc.addDoc(yDoc); this.doc.addDoc(yDoc);
} }