From ff1f01be8ca58fe5a0a4d4dbbed9f93b535cb172 Mon Sep 17 00:00:00 2001 From: zadam Date: Wed, 28 Dec 2022 12:58:53 +0100 Subject: [PATCH] erase deleted notes in the migration --- db/migrations/0210__consistency_checks.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db/migrations/0210__consistency_checks.js b/db/migrations/0210__consistency_checks.js index f49fd0fd4..f3809fa06 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 {