Skip to content
Browse files

WHISTLE-1441: bind the queue id properly

WHISTLE-1441: bind the queue id properly
  • Loading branch information...
1 parent e07e854 commit 903954f86492cb27c5d19dfedca4a9b016cac93d @jamesaimonetti jamesaimonetti committed Oct 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 whistle_apps/apps/crossbar/src/modules/cb_queues.erl
View
4 whistle_apps/apps/crossbar/src/modules/cb_queues.erl
@@ -479,8 +479,8 @@ normalize_view_results(JObj, Acc) ->
-spec normalize_queue_results/2 :: (wh_json:json_object(), wh_json:json_objects()) -> wh_json:json_objects().
normalize_queue_results(JObj, Acc) ->
[begin
- [AID, _] = wh_json:get_value(<<"key">>, JObj),
- wh_json:set_value(<<"queue_id">>, AID, wh_json:get_value(<<"value">>, JObj))
+ [_, QID] = wh_json:get_value(<<"key">>, JObj),
+ wh_json:set_value(<<"queue_id">>, QID, wh_json:get_value(<<"value">>, JObj))
end
| Acc].

0 comments on commit 903954f

Please sign in to comment.
Something went wrong with that request. Please try again.