mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 20:54:31 +08:00
fix Group.ensure_consistency!
This commit is contained in:
parent
7899c2d86e
commit
b00ea5dc92
|
@ -218,11 +218,11 @@ class Group < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def self.ensure_consistency!
|
||||
reset_all_counters
|
||||
refresh_automatic_groups
|
||||
reset_all_counters!
|
||||
refresh_automatic_groups!
|
||||
end
|
||||
|
||||
def self.reset_all_counters
|
||||
def self.reset_all_counters!
|
||||
Group.pluck(:id).each do |group_id|
|
||||
Group.reset_counters(group_id, :group_users)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user