mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
ETAPI auth, spec improvements etc.
This commit is contained in:
15
db/migrations/0194__add_excludeFromNoteMap_to_journal.js
Normal file
15
db/migrations/0194__add_excludeFromNoteMap_to_journal.js
Normal 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);
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user