mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-03-19 22:19:23 +02:00
[#4431] always refresh the app settings before loading the backup cron job
This commit is contained in:
parent
548fce20b5
commit
53ee5212bc
@ -248,6 +248,11 @@ func (app *BaseApp) initAutobackupHooks() error {
|
||||
loadJob := func() {
|
||||
c.Stop()
|
||||
|
||||
// make sure that app.Settings() is always up to date
|
||||
//
|
||||
// @todo remove with the refactoring as core.App and daos.Dao will be one.
|
||||
app.RefreshSettings()
|
||||
|
||||
rawSchedule := app.Settings().Backups.Cron
|
||||
if rawSchedule == "" || !isServe || !app.IsBootstrapped() {
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user