mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
provide note dates in the frontend API, fixes #4232
This commit is contained in:
@@ -21,11 +21,12 @@ function getNoteBlob(req) {
|
||||
|
||||
function getNoteMetadata(req) {
|
||||
const note = becca.getNoteOrThrow(req.params.noteId);
|
||||
const contentMetadata = note.getContentMetadata();
|
||||
|
||||
return {
|
||||
dateCreated: note.dateCreated,
|
||||
combinedDateModified: note.utcDateModified > contentMetadata.utcDateModified ? note.dateModified : contentMetadata.dateModified
|
||||
utcDateCreated: note.utcDateCreated,
|
||||
dateModified: note.dateModified,
|
||||
utcDateModified: note.utcDateModified,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user