Skip to content

Commit

Permalink
KAZOO-4739: use kz_doc accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaimonetti committed May 13, 2016
1 parent 255148a commit c2d11a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/kazoo_config/src/kapps_config.erl
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ add_config_setting(Id, Setting, Values) when is_binary(Id) ->
end;
add_config_setting(JObj, _, []) -> {'ok', JObj};
add_config_setting(JObj, ToSetting, [{FromId, Node, FromSetting, Value} | Values]) ->
ToId = kz_json:get_value(<<"_id">>, JObj),
ToId = kz_doc:id(JObj),
Key = config_setting_key(Node, ToSetting),
case kz_json:get_value(Key, JObj) of
'undefined' ->
Expand Down Expand Up @@ -716,7 +716,7 @@ remove_config_setting(Id, Setting) when is_binary(Id) ->
{'error', _}=Error -> Error
end;
remove_config_setting(JObj, Setting) ->
Id = kz_json:get_value(<<"_id">>, JObj),
Id = kz_doc:id(JObj),
Keys =
[{Id, Node, Setting}
|| Node <- kz_json:get_public_keys(JObj)
Expand Down

0 comments on commit c2d11a2

Please sign in to comment.