Skip to content

Commit

Permalink
Merge pull request #205 from lsa-mis/fix-total-rooms-count
Browse files Browse the repository at this point in the history
count only active rooms
  • Loading branch information
britaumich authored Jul 23, 2024
2 parents ec9b478 + 5063227 commit b97ceef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/dashboard_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def rooms_checked_for_date(zone, date)
end

def total_rooms(zone)
Room.joins(floor: { building: :zone })
Room.active.joins(floor: { building: :zone })
.where(zones: { id: zone.id })
.count
end
Expand Down

0 comments on commit b97ceef

Please sign in to comment.