mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-04-30 01:09:21 -05:00
skeleton for global link map
This commit is contained in:
@@ -268,7 +268,7 @@ class ConsistencyChecks {
|
||||
SELECT noteId, type
|
||||
FROM notes
|
||||
WHERE isDeleted = 0
|
||||
AND type NOT IN ('text', 'code', 'render', 'file', 'image', 'search', 'relation-map', 'book')`,
|
||||
AND type NOT IN ('text', 'code', 'render', 'file', 'image', 'search', 'relation-map', 'book', 'special')`,
|
||||
({noteId, type}) => {
|
||||
if (this.autoFix) {
|
||||
const note = becca.getNote(noteId);
|
||||
|
||||
@@ -82,13 +82,13 @@ function getSinglesNoteRoot() {
|
||||
}
|
||||
|
||||
function getGlobalLinkMapNote() {
|
||||
let globalLinkMapNote = becca.getNote('global-link-map');
|
||||
let globalLinkMapNote = becca.getNote('globallinkmap');
|
||||
|
||||
if (!globalLinkMapNote) {
|
||||
globalLinkMapNote = noteService.createNewNote({
|
||||
noteId: 'global-link-map',
|
||||
title: 'global-link-map',
|
||||
type: 'global-link-map',
|
||||
noteId: 'globallinkmap',
|
||||
title: 'Global Link Map',
|
||||
type: 'special',
|
||||
content: '',
|
||||
parentNoteId: getSinglesNoteRoot().noteId
|
||||
}).note;
|
||||
|
||||
Reference in New Issue
Block a user