group member count optimization

This commit is contained in:
2458773093
2019-07-22 03:46:00 +03:00
parent bd3f453c0d
commit bf2d54201b
7 changed files with 45 additions and 5 deletions

View File

@@ -22,8 +22,4 @@ class REST::GroupSerializer < ActiveModel::Serializer
full_asset_url(object.cover_image.url)
end
def member_count
object.accounts.count
end
end