logging improvements

This commit is contained in:
zadam
2022-02-20 12:33:50 +01:00
parent 9f33791922
commit ea56bb772a
4 changed files with 6 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ function getNotesWithLabel(name, value) {
// TODO: should be in search service
/** @returns {Note|null} */
function getNoteWithLabel(name, value) {
function getNoteWithLabel(name, value = undefined) {
// optimized version (~20 times faster) without using normal search, useful for e.g. finding date notes
const attrs = becca.findAttributes('label', name);