This commit is contained in:
2458773093 2019-07-22 03:10:42 +03:00
parent 7bd832c9bd
commit bd3f453c0d

View File

@ -539,5 +539,6 @@ class Status < ApplicationRecord
def increase_group_unread_counts def increase_group_unread_counts
GroupAccount.where(group_id: group_id).where.not(account_id: account_id).update_all("unread_count = unread_count + 1") GroupAccount.where(group_id: group_id).where.not(account_id: account_id).update_all("unread_count = unread_count + 1")
Rails.cache.delete("relationship:#{account_id}:group#{group_id}")
end end
end end