mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
attachment ETAPI support WIP
This commit is contained in:
@@ -149,7 +149,7 @@ function getEditedNotesOnDate(req) {
|
||||
}
|
||||
|
||||
return notes.map(note => {
|
||||
const notePath = note.isDeleted ? null : getNotePathData(note);
|
||||
const notePath = getNotePathData(note);
|
||||
|
||||
const notePojo = note.getPojo();
|
||||
notePojo.notePath = notePath ? notePath.notePath : null;
|
||||
|
||||
@@ -11,8 +11,8 @@ const ValidationError = require("../../errors/validation_error");
|
||||
function searchFromNote(req) {
|
||||
const note = becca.getNoteOrThrow(req.params.noteId);
|
||||
|
||||
if (note.isDeleted) {
|
||||
// this can be triggered from recent changes, and it's harmless to return empty list rather than fail
|
||||
if (!note) {
|
||||
// this can be triggered from recent changes, and it's harmless to return an empty list rather than fail
|
||||
return [];
|
||||
}
|
||||
|
||||
@@ -26,8 +26,8 @@ function searchFromNote(req) {
|
||||
function searchAndExecute(req) {
|
||||
const note = becca.getNoteOrThrow(req.params.noteId);
|
||||
|
||||
if (note.isDeleted) {
|
||||
// this can be triggered from recent changes, and it's harmless to return empty list rather than fail
|
||||
if (!note) {
|
||||
// this can be triggered from recent changes, and it's harmless to return an empty list rather than fail
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user