Permalink
Browse files

WHISTLE-1441: no need to pare down results here

  • Loading branch information...
1 parent 4cd9841 commit 8dd9a0488d4597f0cc2259089f4ec56b43bd1bb5 @jamesaimonetti jamesaimonetti committed Oct 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 whistle_apps/apps/acdc/src/acdc_agent_handler.erl
@@ -141,7 +141,7 @@ build_stats_resp(AcctId, RespQ, MsgId, [], CurrCalls, CurrAgents) ->
Resp = props:filter_undefined(
[{<<"Account-ID">>, AcctId}
,{<<"Current-Calls">>, wh_json:from_list(props:filter_undefined(CurrCalls))}
- ,{<<"Current-Stats">>, wh_json:get_value(<<"agents">>, acdc_stats:agent_stats(AcctId))}
+ ,{<<"Current-Stats">>, acdc_stats:agent_stats(AcctId)}
,{<<"Current-Statuses">>, wh_json:from_list(props:filter_undefined(CurrAgents))}
,{<<"Msg-ID">>, MsgId}
| wh_api:default_headers(?APP_NAME, ?APP_VERSION)

0 comments on commit 8dd9a04

Please sign in to comment.