getNoteWithLabel fix

This commit is contained in:
azivner 2018-04-04 23:43:54 -04:00
parent 2cdcb3af12
commit fb54678fef
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ async function getNotesWithLabel(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;
}

View File

@ -59,7 +59,7 @@ function ScriptApi(startNote, currentNote) {
this.getRootCalendarNoteId = dateNoteService.getRootCalendarNoteId;
this.getDateNoteId = dateNoteService.getDateNoteId;
this.transaction = sql.doInTransaction;
this.transactional = sql.doInTransaction;
}
module.exports = ScriptContext;