This commit is contained in:
2025-10-13 20:05:45 +02:00
parent ef1b17c29e
commit f641272c22
8 changed files with 20 additions and 6 deletions

View File

@@ -49,8 +49,10 @@ const setUrl = async () => {
const cleanUpDatabaseBusy = ref(false);
const cleanUpDatabase = async () => {
cleanUpDatabaseBusy.value = true;
await useApi('/v2/Maintenance/CleanupNoDownloadManga', { method: 'POST' })
.then(() => refreshNuxtData(FetchKeys.Manga.All))
.finally(() => (cleanUpDatabaseBusy.value = false));
await useApi('/v2/Maintenance/CleanupNoDownloadManga', { method: 'POST' });
await refreshNuxtData(FetchKeys.Manga.All);
cleanUpDatabaseBusy.value = false;
};
useHead({title: 'Settings'});
</script>