mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 10:40:41 +01:00
server: Fix shadowed fields in becca entities
This commit is contained in:
@@ -64,6 +64,10 @@ function getRevision(req: Request) {
|
||||
function getRevisionFilename(revision: BRevision) {
|
||||
let filename = utils.formatDownloadTitle(revision.title, revision.type, revision.mime);
|
||||
|
||||
if (!revision.dateCreated) {
|
||||
throw new Error("Missing creation date for revision.");
|
||||
}
|
||||
|
||||
const extension = path.extname(filename);
|
||||
const date = revision.dateCreated
|
||||
.substr(0, 19)
|
||||
|
||||
Reference in New Issue
Block a user