Update prune.ts

This commit is contained in:
Classic298 2025-08-12 12:48:05 +02:00 committed by GitHub
parent 5ce002d5b3
commit 8d7273afae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,7 +12,8 @@ export const pruneData = async (
delete_orphaned_knowledge_bases: boolean = true, delete_orphaned_knowledge_bases: boolean = true,
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
) => { ) => {
let error = null; let error = null;
@ -33,7 +34,8 @@ export const pruneData = async (
delete_orphaned_knowledge_bases, delete_orphaned_knowledge_bases,
delete_orphaned_models, delete_orphaned_models,
delete_orphaned_notes, delete_orphaned_notes,
delete_orphaned_folders delete_orphaned_folders,
audio_cache_max_age_days
}) })
}) })
.then(async (res) => { .then(async (res) => {