Skip to content

Commit

Permalink
Update app/controllers/owners/companies_controller.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Frederik Bonfanti <freddy@railslove.com>
  • Loading branch information
salimhb and bonflintstone authored Aug 27, 2020
1 parent cd5be97 commit dea1f63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/owners/companies_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def show
def stats
company = Company.find(params[:company_id])

stats = company.areas.map do |a|
{ area_name: a.name, checkin_count: a.tickets.open.count }
stats = company.areas.map do |area|
{ area_name: area.name, checkin_count: area.tickets.open.count }
end

render json: stats
Expand Down

0 comments on commit dea1f63

Please sign in to comment.