Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: shouldCompress is not defined

thecodrr53be480b67d3
diff --git a/packages/core/api/sync/collector.js b/packages/core/api/sync/collector.js
index a8cfebe83..97acdcd3c 100644
--- a/packages/core/api/sync/collector.js
+++ b/packages/core/api/sync/collector.js
@@ -51,7 +51,7 @@ class Collector {
return this._db.context.encrypt(
this.key,
JSON.stringify(item),
- shouldCompress(item.type)
+ this.shouldCompress(item.type)
);
}