diff --git a/app/serializers/api/v1/team_serializer.rb b/app/serializers/api/v1/team_serializer.rb index 62d13afae..225d1a6e2 100644 --- a/app/serializers/api/v1/team_serializer.rb +++ b/app/serializers/api/v1/team_serializer.rb @@ -5,6 +5,10 @@ module Api class TeamSerializer < ActiveModel::Serializer attributes :id, :name, :description, :space_taken belongs_to :created_by, serializer: UserSerializer + + def space_taken + object.storage_used.to_i + end end end end diff --git a/app/views/users/settings/teams/show.html.erb b/app/views/users/settings/teams/show.html.erb index fade85eab..8fe482819 100644 --- a/app/views/users/settings/teams/show.html.erb +++ b/app/views/users/settings/teams/show.html.erb @@ -50,7 +50,7 @@