mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 01:36:24 +01:00
feat(docs): erase unnecessary attachments
This commit is contained in:
@@ -166,8 +166,10 @@ async function cleanUpMeta() {
|
||||
|
||||
async function registerHandlers() {
|
||||
const events = (await import("./src/services/events.js")).default;
|
||||
const eraseService = (await import("./src/services/erase.js")).default;
|
||||
const debouncer = debounce(async () => {
|
||||
console.log("Exporting data");
|
||||
eraseService.eraseUnusedAttachmentsNow();
|
||||
await exportData("markdown", markdownPath);
|
||||
await exportData("html", htmlPath);
|
||||
}, 10_000);;
|
||||
|
||||
Reference in New Issue
Block a user