added also "sqlConsoleHome"

This commit is contained in:
zadam 2020-12-07 09:19:27 +01:00
parent 4078b32e9d
commit 16c4b8aa43
2 changed files with 5 additions and 2 deletions

View File

@ -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',

View File

@ -37,6 +37,7 @@ const BUILTIN_ATTRIBUTES = [
{ type: 'label', name: 'workspaceIconClass' },
{ type: 'label', name: 'workspaceTabBackgroundColor' },
{ type: 'label', name: 'searchHome' },
{ type: 'label', name: 'sqlConsoleHome' },
// relation names
{ type: 'relation', name: 'runOnNoteCreation', isDangerous: true },