mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-30 15:42:49 +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,
|
blob: status,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
this.doc.setPriority(yDoc.guid, 100);
|
||||||
this.doc.addDoc(yDoc);
|
this.doc.addDoc(yDoc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user