mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
Update prune.ts
This commit is contained in:
parent
7abcc7bc59
commit
808fd0324d
1 changed files with 4 additions and 2 deletions
|
|
@ -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) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue