core: allow setting custom date edited

This commit is contained in:
Abdullah Atta
2024-01-29 17:59:22 +05:00
committed by Abdullah Atta
parent 993b8460bf
commit 57452bd0e6

View File

@@ -129,7 +129,8 @@ export default class Notes extends Collection {
readonly: !!note.readonly,
dateCreated: note.dateCreated,
dateEdited: note.dateEdited || note.dateCreated || Date.now(),
dateEdited:
noteArg.dateEdited || note.dateEdited || note.dateCreated || Date.now(),
dateModified: note.dateModified
};