purge 2x the unactivated old users
This commit is contained in:
parent
c58123b421
commit
f8144f07fd
|
@ -980,7 +980,7 @@ class User < ActiveRecord::Base
|
|||
.joins('INNER JOIN user_stats AS us ON us.user_id = users.id')
|
||||
.where("created_at < ?", SiteSetting.purge_unactivated_users_grace_period_days.days.ago)
|
||||
.where('NOT admin AND NOT moderator')
|
||||
.limit(100)
|
||||
.limit(200)
|
||||
|
||||
destroyer = UserDestroyer.new(Discourse.system_user)
|
||||
to_destroy.each do |u|
|
||||
|
|
Loading…
Reference in New Issue