Display favorites count on profile, fixes #126
This commit is contained in:
@@ -38,6 +38,7 @@ class InitialStateSerializer < ActiveModel::Serializer
|
||||
store[:is_staff] = object.current_account.user.staff?
|
||||
store[:unread_count] = unread_count object.current_account
|
||||
store[:monthly_expenses_complete] = Redis.current.get("monthly_funding_ammount") || 0
|
||||
store[:favourites_count] = object.current_account.favourites.count.to_s
|
||||
end
|
||||
|
||||
store
|
||||
|
||||
Reference in New Issue
Block a user