mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
fix Group.ensure_consistency!
This commit is contained in:
parent
7899c2d86e
commit
b00ea5dc92
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue