mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-30 05:34:21 +03:00
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:
parent
a3cc06f3bb
commit
30b8b12703
@ -42,6 +42,7 @@ export class WorkspaceEngine {
|
||||
blob: status,
|
||||
};
|
||||
});
|
||||
this.doc.setPriority(yDoc.guid, 100);
|
||||
this.doc.addDoc(yDoc);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user