Skip to content

Commit

Permalink
3.19: remove source_url if present
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaimonetti committed Mar 11, 2015
1 parent 21c3769 commit eb3b708
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion applications/crossbar/src/crossbar_maintenance.erl
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,9 @@ find_app(Db, Name) ->

-spec create_app(ne_binary(), wh_json:object(), ne_binary()) -> 'ok'.
create_app(AppPath, MetaData, MasterAccountDb) ->
Doc = wh_doc:update_pvt_parameters(MetaData, MasterAccountDb, [{'type', <<"app">>}]),
Doc = wh_json:delete_keys([<<"source_url">>]
,wh_doc:update_pvt_parameters(MetaData, MasterAccountDb, [{'type', <<"app">>}])
),
case couch_mgr:save_doc(MasterAccountDb, Doc) of
{'ok', JObj} ->
io:format(" saved app ~s as doc ~s~n", [wh_json:get_value(<<"name">>, JObj)
Expand Down

0 comments on commit eb3b708

Please sign in to comment.