feat(docs): erase unnecessary attachments

This commit is contained in:
Elian Doran
2025-03-16 14:45:15 +02:00
parent 051cba9a6d
commit 8c1f4b0014
173 changed files with 161 additions and 755 deletions

View File

@@ -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);;