From 3bafc396fc88d032c5aa8fb9497daa5d8e6c6ff1 Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 14 Mar 2020 13:13:27 +0100 Subject: [PATCH 1/2] fix consistency checks --- src/services/consistency_checks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/consistency_checks.js b/src/services/consistency_checks.js index 4c0cfee7c..b0b57166c 100644 --- a/src/services/consistency_checks.js +++ b/src/services/consistency_checks.js @@ -51,7 +51,7 @@ class ConsistencyChecks { childToParents[childNoteId].push(parentNoteId); } - function checkTreeCycle(noteId, path) { + const checkTreeCycle = (noteId, path) => { if (noteId === 'root') { return; } @@ -75,7 +75,7 @@ class ConsistencyChecks { checkTreeCycle(parentNoteId, newPath); } } - } + }; const noteIds = Object.keys(childToParents); From 20c24e26cc38717f120603531634139bf3af299c Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 14 Mar 2020 21:09:07 +0100 Subject: [PATCH 2/2] added entity constructors for "content" tables --- src/entities/entity_constructor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/entities/entity_constructor.js b/src/entities/entity_constructor.js index 45e0e332a..1cdf4b90b 100644 --- a/src/entities/entity_constructor.js +++ b/src/entities/entity_constructor.js @@ -11,7 +11,9 @@ const ENTITY_NAME_TO_ENTITY = { "attributes": Attribute, "branches": Branch, "notes": Note, + "note_contents": Note, "note_revisions": NoteRevision, + "note_revision_contents": NoteRevision, "recent_notes": RecentNote, "options": Option, "api_tokens": ApiToken,