Permalink
Browse files

WHISTLE-1510: set the value properly this time

  • Loading branch information...
1 parent 3f15a02 commit 4c31802f26ec9a9d3d7377a88fcf370cdc13f8bd @jamesaimonetti jamesaimonetti committed Aug 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 whistle_apps/apps/crossbar/src/modules/cb_devices.erl
@@ -275,7 +275,7 @@ create_device(#cb_context{req_data=Req, db_name=Db}=Context) ->
crossbar_util:response_invalid_data(E, Context);
{pass, JObj} ->
Context#cb_context{resp_status=success
- ,doc=wh_json:set_value([<<"pvt_type">>, <<"device">>], JObj)
+ ,doc=wh_json:set_value(<<"pvt_type">>, <<"device">>, JObj)
}
end.

0 comments on commit 4c31802

Please sign in to comment.