added migration to add excludeFromTreeMap for journal subtrees

This commit is contained in:
zadam
2021-09-23 22:08:23 +02:00
parent fabf24a065
commit b041d081db
7 changed files with 71 additions and 17 deletions

View File

@@ -0,0 +1,15 @@
const becca = require('../../src/becca/becca');
const beccaLoader = require('../../src/becca/becca_loader');
const cls = require('../../src/services/cls');
module.exports = () => {
cls.init(() => {
beccaLoader.load();
for (const note of Object.values(becca.notes)) {
if (note.hasLabel('calendarRoot')) {
note.addLabel('excludeFromTreeMap', "", true);
}
}
});
};