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: delete migrated flag
thecodrr786ea2f9d72c
diff --git a/packages/core/collections/notes.js b/packages/core/collections/notes.jsindex 2997f81b3..8d8973066 100644--- a/packages/core/collections/notes.js+++ b/packages/core/collections/notes.js@@ -44,7 +44,6 @@ export default class Notes extends Collection {await this._db.tags.add(tag, id);}}-return await this._collection.addItem(noteArg);}diff --git a/packages/core/database/indexed-collection.js b/packages/core/database/indexed-collection.jsindex 6d03d62dc..9536ddbca 100644--- a/packages/core/database/indexed-collection.js+++ b/packages/core/database/indexed-collection.js@@ -28,8 +28,9 @@ export default class IndexedCollection {if (!item.id) throw new Error("The item must contain the id field.");// if item is newly synced, remote will be true.item.dateEdited = item.remote ? item.dateEdited : Date.now();- // the item has become local now, so remove the flag.+ // the item has become local now, so remove the flagsdelete item.remote;+ delete item.migrated;await this.indexer.write(item.id, item);}