Add tootctl cache recount
command (#11597)
This commit is contained in:
parent
8a555534ec
commit
96702e7f67
3 changed files with 52 additions and 3 deletions
|
@ -26,7 +26,8 @@ module AccountCounters
|
|||
private
|
||||
|
||||
def save_account_stat
|
||||
return unless account_stat&.changed?
|
||||
return unless association(:account_stat).loaded? && account_stat&.changed?
|
||||
|
||||
account_stat.save
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue