Update prune.ts

This commit is contained in:
Classic298 2025-08-22 15:38:41 +02:00 committed by GitHub
parent 596f02c2e9
commit 4e6e5819a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,10 @@ export const pruneData = async (
delete_orphaned_models: boolean = true, delete_orphaned_models: boolean = true,
delete_orphaned_notes: boolean = true, delete_orphaned_notes: boolean = true,
delete_orphaned_folders: boolean = true, delete_orphaned_folders: boolean = true,
audio_cache_max_age_days: number | null = 30 audio_cache_max_age_days: number | null = 30,
delete_inactive_users_days: number | null = null,
exempt_admin_users: boolean = true,
exempt_pending_users: boolean = true
) => { ) => {
let error = null; let error = null;
@ -35,7 +38,10 @@ export const pruneData = async (
delete_orphaned_models, delete_orphaned_models,
delete_orphaned_notes, delete_orphaned_notes,
delete_orphaned_folders, delete_orphaned_folders,
audio_cache_max_age_days audio_cache_max_age_days,
delete_inactive_users_days,
exempt_admin_users,
exempt_pending_users
}) })
}) })
.then(async (res) => { .then(async (res) => {