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
erase deleted notes in the migration
zadamff1f01be8ca5
diff --git a/db/migrations/0210__consistency_checks.js b/db/migrations/0210__consistency_checks.jsindex f49fd0fd47..f3809fa06a 100644--- a/db/migrations/0210__consistency_checks.js+++ b/db/migrations/0210__consistency_checks.js@@ -3,8 +3,12 @@ module.exports = async () => {const beccaLoader = require("../../src/becca/becca_loader");const log = require("../../src/services/log");const consistencyChecks = require("../../src/services/consistency_checks");+ const noteService = require("../../src/services/notes");await cls.init(async () => {+ // precaution for the 0211 migration+ noteService.eraseDeletedNotesNow();+beccaLoader.load();try {