chore(edit-docs): erase attachments before exporting

This commit is contained in:
Elian Doran 2025-04-04 20:35:55 +03:00
parent d0c1ffc581
commit 92c1dd1177
No known key found for this signature in database

View File

@ -103,6 +103,7 @@ 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 () => {
eraseService.eraseUnusedAttachmentsNow();
await exportData("markdown", markdownPath);
await exportData("html", htmlPath);
}, 10_000);