provide note dates in the frontend API, fixes #4232

This commit is contained in:
zadam
2023-09-06 22:54:31 +02:00
parent 97d8b19868
commit d2263c68f8
4 changed files with 11 additions and 16 deletions

View File

@@ -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,
};
}