mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 00:35:50 +01:00
added also "sqlConsoleHome"
This commit is contained in:
@@ -42,10 +42,12 @@ function getDateNotesForMonth(req) {
|
||||
function createSqlConsole() {
|
||||
const today = dateUtils.localNowDate();
|
||||
|
||||
const todayNote = dateNoteService.getDateNote(today);
|
||||
const sqlConsoleHome =
|
||||
attributeService.getNoteWithLabel('sqlConsoleHome')
|
||||
|| dateNoteService.getDateNote(today);
|
||||
|
||||
const {note} = noteService.createNewNote({
|
||||
parentNoteId: todayNote.noteId,
|
||||
parentNoteId: sqlConsoleHome.noteId,
|
||||
title: 'SQL Console',
|
||||
content: "SELECT title, isDeleted, isProtected FROM notes WHERE noteId = ''\n\n\n\n",
|
||||
type: 'code',
|
||||
|
||||
Reference in New Issue
Block a user