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
fix: do not update dateEdited on migration
thecodrr8d7621def63c
diff --git a/packages/core/migrations.js b/packages/core/migrations.jsindex 06d82fdb0..9b5b9b2d8 100644--- a/packages/core/migrations.js+++ b/packages/core/migrations.js@@ -6,20 +6,18 @@ export const migrations = {delete item.content;item.contentId = contentId;}- if (item.notebook) {+ if (item.notebook.id) {const notebook = item.notebook;- delete item.notebook;item.notebooks = [notebook];}+ delete item.notebook;item.remote = true;- item.dateEdited = Date.now();item.migrated = true;return item;},delta: function (item) {item.data = item.data.ops;item.type = "delta";- item.dateEdited = Date.now();item.migrated = true;return item;},@@ -30,7 +28,6 @@ export const migrations = {item.contentId = item.content.delta;delete item.content;}- item.dateEdited = Date.now();item.migrated = true;return item;},@@ -42,7 +39,6 @@ export const migrations = {delete item.notebook;item.remote = true;if (notebook) item.notebooks = [notebook];- item.dateEdited = Date.now();item.migrated = true;return item;},