Skip to content

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

fix: only update content dateEdited if attachments found

thecodrr17e98ac92d06
diff --git a/packages/core/collections/content.js b/packages/core/collections/content.js
index 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;
}
}