2022-12-08 20:45:56 +08:00
|
|
|
module.exports = () => {
|
2022-12-09 23:13:22 +08:00
|
|
|
const hiddenSubtreeService = require('../../src/services/hidden_subtree');
|
2022-12-08 20:45:56 +08:00
|
|
|
const cls = require("../../src/services/cls");
|
|
|
|
const beccaLoader = require("../../src/becca/becca_loader");
|
|
|
|
|
|
|
|
cls.init(() => {
|
|
|
|
beccaLoader.load();
|
2022-12-20 06:49:41 +08:00
|
|
|
// make sure the hidden subtree exists since the subsequent migrations we will move some existing notes into it (share...)
|
|
|
|
// in previous releases hidden subtree was created lazily
|
2023-01-18 06:13:21 +08:00
|
|
|
hiddenSubtreeService.checkHiddenSubtree(true);
|
2022-12-08 20:45:56 +08:00
|
|
|
});
|
|
|
|
};
|