mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
purge 2x the unactivated old users
This commit is contained in:
parent
c58123b421
commit
f8144f07fd
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue