Display favorites count on profile, fixes #126

This commit is contained in:
Alex Gleason
2020-03-10 15:26:34 -05:00
parent 0e17641f12
commit bccb9a6f9c
3 changed files with 5 additions and 3 deletions

View File

@@ -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