Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
fix: use correct time for auto update job
Kyle Mendelle7a5a3173f8f
diff --git a/backend/internal/job/auto_update_job.go b/backend/internal/job/auto_update_job.goindex 460d1f323..6128975f2 100644--- a/backend/internal/job/auto_update_job.go+++ b/backend/internal/job/auto_update_job.go@@ -23,14 +23,14 @@ func NewAutoUpdateJob(updaterService *services.UpdaterService, settingsService *func RegisterAutoUpdateJob(ctx context.Context, scheduler *Scheduler, updaterService *services.UpdaterService, settingsService *services.SettingsService) error {autoUpdateEnabled := settingsService.GetBoolSetting(ctx, "autoUpdate", false)- autoUpdateInterval := settingsService.GetIntSetting(ctx, "autoUpdateInterval", 300)+ autoUpdateInterval := settingsService.GetIntSetting(ctx, "autoUpdateInterval", 1440)if !autoUpdateEnabled {slog.InfoContext(ctx, "auto-update disabled; job not registered")return nil}- interval := time.Duration(autoUpdateInterval) * time.Second+ interval := time.Duration(autoUpdateInterval) * time.Minuteif interval < 5*time.Minute {slog.WarnContext(ctx, "auto-update interval too low; using default","requested_seconds", autoUpdateInterval,