diff --git a/app/src/config/about.ts b/app/src/config/about.ts index 0a6843960..4f4415af2 100644 --- a/app/src/config/about.ts +++ b/app/src/config/about.ts @@ -255,10 +255,10 @@ ${checkUpdateHTML} }); }); about.element.querySelector("#vacuumDataIndex").addEventListener("click", () => { - fetchPost("/api/system/vacuumDataIndex", {}, (response) => {}); + fetchPost("/api/system/vacuumDataIndex", {}, () => {}); }); about.element.querySelector("#rebuildDataIndex").addEventListener("click", () => { - fetchPost("/api/system/rebuildDataIndex", {}, (response) => {}); + fetchPost("/api/system/rebuildDataIndex", {}, () => {}); }); about.element.querySelector("#exportLog").addEventListener("click", () => { fetchPost("/api/system/exportLog", {}, (response) => { diff --git a/app/src/mobile/settings/about.ts b/app/src/mobile/settings/about.ts index 0266cd795..ce2988b94 100644 --- a/app/src/mobile/settings/about.ts +++ b/app/src/mobile/settings/about.ts @@ -300,12 +300,12 @@ export const initAbout = () => { event.stopPropagation(); break; } else if (target.id === "vacuumDataIndex") { - fetchPost("/api/system/vacuumDataIndex", {}, (response) => {}); + fetchPost("/api/system/vacuumDataIndex", {}, () => {}); event.preventDefault(); event.stopPropagation(); break; } else if (target.id === "rebuildDataIndex") { - fetchPost("/api/system/rebuildDataIndex", {}, (response) => {}); + fetchPost("/api/system/rebuildDataIndex", {}, () => {}); event.preventDefault(); event.stopPropagation(); break;