fix migration from 0.47, closes #2514

This commit is contained in:
zadam
2022-01-05 20:21:24 +01:00
parent 7a650c605c
commit e6f3cc7988
3 changed files with 2 additions and 1 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('excludeFromNoteMap', "", true);
}
}
});
};