Update prune.ts

This commit is contained in:
Classic298 2025-08-22 16:16:42 +02:00 committed by GitHub
parent 7abcc7bc59
commit 808fd0324d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,7 +16,8 @@ export const pruneData = async (
audio_cache_max_age_days: number | null = 30, audio_cache_max_age_days: number | null = 30,
delete_inactive_users_days: number | null = null, delete_inactive_users_days: number | null = null,
exempt_admin_users: boolean = true, exempt_admin_users: boolean = true,
exempt_pending_users: boolean = true exempt_pending_users: boolean = true,
dry_run: boolean = true
) => { ) => {
let error = null; let error = null;
@ -41,7 +42,8 @@ export const pruneData = async (
audio_cache_max_age_days, audio_cache_max_age_days,
delete_inactive_users_days, delete_inactive_users_days,
exempt_admin_users, exempt_admin_users,
exempt_pending_users exempt_pending_users,
dry_run
}) })
}) })
.then(async (res) => { .then(async (res) => {