mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
small refactorings
This commit is contained in:
@@ -218,11 +218,8 @@ eventService.subscribe(eventService.ENTITY_DELETED, ({ entityName, entity }) =>
|
||||
if (entityName === 'notes' && entity.noteId.startsWith("_")) {
|
||||
// "named" note has been deleted, we will probably need to rebuild the hidden subtree
|
||||
// scheduling so that bulk deletes won't trigger so many checks
|
||||
oneTimeTimer.scheduleExecution('hidden-subtree-check', 1000, () => {
|
||||
console.log("Checking hidden subtree");
|
||||
|
||||
hiddenSubtreeService.checkHiddenSubtree();
|
||||
});
|
||||
oneTimeTimer.scheduleExecution('hidden-subtree-check', 1000,
|
||||
() => hiddenSubtreeService.checkHiddenSubtree());
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user