mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-24 07:29:30 +01:00
fix: improve content cleanup logic
This commit is contained in:
@@ -96,8 +96,6 @@ class Database {
|
||||
await this.migrations.migrate();
|
||||
|
||||
this.monographs.init();
|
||||
|
||||
await this.syncer.cleanup();
|
||||
}
|
||||
|
||||
async connectSSE() {
|
||||
@@ -114,7 +112,8 @@ class Database {
|
||||
headers: { Authorization: `Bearer ${token}` },
|
||||
});
|
||||
|
||||
this.evtSource.onopen = function () {
|
||||
this.evtSource.onopen = async () => {
|
||||
await this.syncer.cleanup();
|
||||
console.log("SSE: opened channel successfully!");
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user