smaller search improvements

This commit is contained in:
zadam
2020-12-04 22:57:54 +01:00
parent 526bd81b50
commit b0e5ab7533
8 changed files with 106 additions and 33 deletions

View File

@@ -60,11 +60,13 @@ function createSqlConsole() {
function createSearchNote() {
const today = dateUtils.localNowDate();
const todayNote = dateNoteService.getDateNote(today);
const searchHome =
attributeService.getNoteWithLabel('searchHome')
|| dateNoteService.getDateNote(today);
const {note} = noteService.createNewNote({
parentNoteId: todayNote.noteId,
title: 'Search',
parentNoteId: searchHome.noteId,
title: 'Search: ',
content: "",
type: 'search',
mime: 'application/json'