Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix lint
  • Loading branch information
techknowlogick committed Oct 3, 2021
commit b6ef89b6af3dae682baeba2340e96246349862c0
6 changes: 3 additions & 3 deletions modules/cron/tasks_extended.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,18 @@ func registerUpdateGiteaChecker() {
type UpdateCheckerConfig struct {
BaseConfig
Timeout time.Duration
HttpEndpoint string
HTTPEndpoint string
}
RegisterTaskFatal("update_checker", &UpdateCheckerConfig{
BaseConfig: BaseConfig{
Enabled: false,
RunAtStart: false,
Schedule: "@every 168h",
},
HttpEndpoint: "https://dl.gitea.io/gitea/version.json",
HTTPEndpoint: "https://dl.gitea.io/gitea/version.json",
}, func(ctx context.Context, _ *models.User, config Config) error {
updateCheckerConfig := config.(*UpdateCheckerConfig)
return models.GiteaUpdateChecker(updateCheckerConfig.HttpEndpoint)
return models.GiteaUpdateChecker(updateCheckerConfig.HTTPEndpoint)
})
}

Expand Down