Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix handlers import, closes #2900
zadamb4ac41eff8f4
diff --git a/src/becca/entities/note.js b/src/becca/entities/note.jsindex 0a945bf0f1..662a0ba788 100644--- a/src/becca/entities/note.js+++ b/src/becca/entities/note.js@@ -9,7 +9,6 @@ const entityChangesService = require('../../services/entity_changes');const AbstractEntity = require("./abstract_entity");const NoteRevision = require("./note_revision");const TaskContext = require("../../services/task_context");-const handlers = require("../../services/handlers");const LABEL = 'label';const RELATION = 'relation';@@ -1143,6 +1142,7 @@ class Note extends AbstractEntity {}// needs to be run before branches and attributes are deleted and thus attached relations disappear+ const handlers = require("../../services/handlers");handlers.runAttachedRelations(this, 'runOnNoteDeletion', this);taskContext.noteDeletionHandlerTriggered = true;