Commit 8ce4e15829e33159908603d88e4f264116a2ab39

Authored by Daniel Beardsley
1 parent d89230cf
Exists in master and in 1 other branch production

App: use unresolved_count method

Keepin it DRY.
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/api/v1/stats_controller.rb
@@ -13,7 +13,7 @@ class Api::V1::StatsController < ApplicationController @@ -13,7 +13,7 @@ class Api::V1::StatsController < ApplicationController
13 stats = { 13 stats = {
14 :name => @app.name, 14 :name => @app.name,
15 :last_error_time => @last_error_time, 15 :last_error_time => @last_error_time,
16 - :unresolved_errors => @app.problems.unresolved.count 16 + :unresolved_errors => @app.unresolved_count
17 } 17 }
18 18
19 respond_to do |format| 19 respond_to do |format|