Skip to content

Commit

Permalink
core: allow setting custom date edited
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Jan 29, 2024
1 parent 993b846 commit 57452bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/collections/notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

Expand Down

0 comments on commit 57452bd

Please sign in to comment.