mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-14 01:58:14 +02:00
updated db pool limits, added logs VACUUM, updated api docs
This commit is contained in:
1 parent
39dc1d2795
commit
521df149a2
64 files changed
+650
-751
No files matched your search
@@ -72,6 +72,11 @@ func (form *SettingsUpsert) Submit(interceptors ...InterceptorFunc) error {
|
||||
time.Now().AddDate(0, 0, -1*form.Settings.Logs.MaxDays),
|
||||
)
|
||||
|
||||
if form.Settings.Logs.MaxDays == 0 {
|
||||
// reclaim deleted logs disk space
|
||||
form.app.LogsDao().Vacuum()
|
||||
}
|
||||
|
||||
// merge the application settings with the form ones
|
||||
return form.app.Settings().Merge(form.Settings)
|
||||
}, interceptors...)
|
||||
|
||||
Reference in new issue
Block a user