mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
getNoteWithLabel fix
This commit is contained in:
parent
2cdcb3af12
commit
fb54678fef
@ -39,7 +39,7 @@ async function getNotesWithLabel(name, value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getNoteWithLabel(name, value) {
|
async function getNoteWithLabel(name, value) {
|
||||||
const notes = getNotesWithLabel(name, value);
|
const notes = await getNotesWithLabel(name, value);
|
||||||
|
|
||||||
return notes.length > 0 ? notes[0] : null;
|
return notes.length > 0 ? notes[0] : null;
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ function ScriptApi(startNote, currentNote) {
|
|||||||
this.getRootCalendarNoteId = dateNoteService.getRootCalendarNoteId;
|
this.getRootCalendarNoteId = dateNoteService.getRootCalendarNoteId;
|
||||||
this.getDateNoteId = dateNoteService.getDateNoteId;
|
this.getDateNoteId = dateNoteService.getDateNoteId;
|
||||||
|
|
||||||
this.transaction = sql.doInTransaction;
|
this.transactional = sql.doInTransaction;
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = ScriptContext;
|
module.exports = ScriptContext;
|
Loading…
x
Reference in New Issue
Block a user