Skip to content

Commit

Permalink
KAZOO-3255:Fix for pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Defebvre committed Jan 27, 2015
1 parent 8f39516 commit f6121a9
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions applications/crossbar/src/modules/cb_hotdesks.erl
Original file line number Diff line number Diff line change
Expand Up @@ -110,27 +110,8 @@ normalize_view_results(JObj, Acc) ->
route_by_type('undefined', Context) ->
crossbar_doc:load_view(?CB_LIST, [], Context, fun normalize_view_results/2);
route_by_type({<<"device">>, DeviceId}, Context) ->
crossbar_doc:load_view(?CB_LIST, view_options(DeviceId), Context, fun normalize_view_results/2);
crossbar_doc:load_view(?CB_LIST, [{<<"key">>, DeviceId}], Context, fun normalize_view_results/2);
route_by_type({<<"user">>, UserId}, Context) ->
io:format("MARKER:cb_hotdesks.erl:115 ~p~n", [UserId]),
crossbar_doc:load_view(?CB_LIST, view_options(UserId), Context, fun normalize_view_results/2);
crossbar_doc:load_view(?CB_LIST, [{<<"key">>, UserId}], Context, fun normalize_view_results/2);
route_by_type({<<"account">>, _}, Context) ->
crossbar_doc:load_view(?CB_LIST, [], Context, fun normalize_view_results/2).


view_options(Id) ->
[{<<"key">>, Id}].














0 comments on commit f6121a9

Please sign in to comment.