mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
core: do not run auto sync on changes in notehistory & sessioncontent collections
This commit is contained in:
@@ -57,11 +57,13 @@ export class AutoSync {
|
||||
|
||||
private schedule(event: DatabaseUpdatedEvent) {
|
||||
if (
|
||||
(event.type === "upsert" || event.type === "update") &&
|
||||
(event.item.remote ||
|
||||
("localOnly" in event.item && event.item.localOnly) ||
|
||||
("failed" in event.item && event.item.failed) ||
|
||||
("dateUploaded" in event.item && event.item.dateUploaded))
|
||||
event.collection === "notehistory" ||
|
||||
event.collection === "sessioncontent" ||
|
||||
((event.type === "upsert" || event.type === "update") &&
|
||||
(event.item.remote ||
|
||||
("localOnly" in event.item && event.item.localOnly) ||
|
||||
("failed" in event.item && event.item.failed) ||
|
||||
("dateUploaded" in event.item && event.item.dateUploaded)))
|
||||
)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user