diff options
Diffstat (limited to 'services/cron/tasks_extended.go')
-rw-r--r-- | services/cron/tasks_extended.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/cron/tasks_extended.go b/services/cron/tasks_extended.go index 2d1bf53234..ec7ced99e9 100644 --- a/services/cron/tasks_extended.go +++ b/services/cron/tasks_extended.go @@ -26,7 +26,7 @@ func registerDeleteInactiveUsers() { RunAtStart: false, Schedule: "@annually", }, - OlderThan: 0 * time.Second, + OlderThan: time.Minute * time.Duration(setting.Service.ActiveCodeLives), }, func(ctx context.Context, _ *user_model.User, config Config) error { olderThanConfig := config.(*OlderThanConfig) return user_service.DeleteInactiveUsers(ctx, olderThanConfig.OlderThan) |