mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 11:02:28 +08:00
chore(edit-docs): erase attachments before exporting
This commit is contained in:
parent
d0c1ffc581
commit
92c1dd1177
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user