Skip to content

Commit

Permalink
HELP-45073: Fix provisioning realm settings and include datetime (#5886)
Browse files Browse the repository at this point in the history
  • Loading branch information
harenson authored and jamesaimonetti committed Jul 3, 2019
1 parent 0656150 commit 9285dcd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions applications/crossbar/src/modules/provisioner_v5.erl
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,12 @@ delete_account(AccountId, AuthToken) ->
%% @end
%%------------------------------------------------------------------------------
-spec update_account(kz_term:ne_binary(), kzd_accounts:doc(), kz_term:ne_binary()) -> 'ok'.
update_account(AccountId, _JObj, AuthToken) ->
update_account(AccountId, JObj, AuthToken) ->
Settings = [{<<"lines">>, [[{<<"sip">>, [{<<"realm">>, kzd_accounts:realm(JObj)}]}]]}
,{<<"datetime">>, settings_datetime(JObj)}
],
send_req('accounts_update'
,kz_json:from_list([{<<"settings">>, kz_json:new()}])
,kz_json:from_list([{<<"settings">>, kz_json:from_list_recursive(Settings)}])
,AuthToken
,AccountId
,'undefined'
Expand Down

0 comments on commit 9285dcd

Please sign in to comment.