Skip to content

Commit

Permalink
[#4431] always refresh the app settings before loading the backup cro…
Browse files Browse the repository at this point in the history
…n job
  • Loading branch information
ganigeorgiev committed Feb 26, 2024
1 parent 548fce2 commit 53ee521
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/base_backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 53ee521

Please sign in to comment.