Skip to content

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

core: forcefully set item type to `tiptap` if it is `content`

Abdullah Atta6469c6d68951
diff --git a/packages/core/database/migrator.js b/packages/core/database/migrator.js
index 9c68f1ce7..ebdcf401c 100644
--- a/packages/core/database/migrator.js
+++ b/packages/core/database/migrator.js
@@ -34,6 +34,12 @@ class Migrator {
await collection.dbCollection?._collection?.addItem(item);
continue;
}
+
+ // temporary fix for streetwriters/notesnook#751
+ if (item.type === "content") {
+ item.type = "tiptap";
+ }
+
const migrate = migrations[version][item.type || collection.type];
if (migrate) item = await migrate(item, db);