A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
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.jsindex 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);