mirror of
https://github.com/zadam/trilium.git
synced 2024-12-29 11:24:45 +08:00
16 lines
555 B
JavaScript
16 lines
555 B
JavaScript
module.exports = () => {
|
|
const cls = require("../../src/services/cls");
|
|
const cloningService = require("../../src/services/cloning");
|
|
const beccaLoader = require("../../src/becca/becca_loader");
|
|
const becca = require("../../src/becca/becca");
|
|
|
|
cls.init(() => {
|
|
beccaLoader.load();
|
|
|
|
for (const attr of becca.findAttributes('label','bookmarked')) {
|
|
cloningService.toggleNoteInParent(true, attr.noteId, 'lbBookmarks');
|
|
|
|
attr.markAsDeleted("0204__migrate_bookmarks_to_clones");
|
|
}
|
|
});
|
|
};
|