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: only update content dateEdited if attachments found
thecodrr17e98ac92d06
diff --git a/packages/core/collections/content.js b/packages/core/collections/content.jsindex 5664d2efb..bfbbf054e 100644--- a/packages/core/collections/content.js+++ b/packages/core/collections/content.js@@ -130,8 +130,10 @@ export default class Content extends Collection {await this._db.attachments.add(attachment, contentItem.noteId);}- contentItem.data = data;- contentItem.dateEdited = Date.now();+ if (attachments && attachments.length > 0) {+ contentItem.dateEdited = Date.now();+ contentItem.data = data;+ }return contentItem;}}