mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 08:45:50 +01:00
converting note properties to methods
This commit is contained in:
@@ -195,7 +195,7 @@ function changeTitle(req) {
|
||||
return [404, `Note ${noteId} has not been found`];
|
||||
}
|
||||
|
||||
if (!note.isContentAvailable) {
|
||||
if (!note.isContentAvailable()) {
|
||||
return [400, `Note ${noteId} is not available for change`];
|
||||
}
|
||||
|
||||
|
||||
@@ -182,7 +182,7 @@ function searchFromRelation(note, relationName) {
|
||||
return [];
|
||||
}
|
||||
|
||||
if (!note.isContentAvailable) {
|
||||
if (!note.isContentAvailable()) {
|
||||
log.info(`Note ${scriptNote.noteId} is not available outside of protected session.`);
|
||||
|
||||
return [];
|
||||
|
||||
@@ -29,7 +29,7 @@ function getSubtreeSize(req) {
|
||||
return [404, `Note ${noteId} was not found.`];
|
||||
}
|
||||
|
||||
const subTreeNoteIds = note.subtreeNotes.map(note => note.noteId);
|
||||
const subTreeNoteIds = note.getSubtreeNotes().map(note => note.noteId);
|
||||
|
||||
sql.fillParamList(subTreeNoteIds);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user