Skip to content

Commit

Permalink
HELP-21278: refreshing webhooks list during whapps_maintenance migrate
Browse files Browse the repository at this point in the history
Cherry-pick from 03581ec (#1659) and partially 4d705c5 (#1664)
  • Loading branch information
icehess authored and mark2600 committed Mar 8, 2016
1 parent 85a9bc7 commit 5456c3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/whistle_apps/src/whapps_maintenance.erl
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ refresh_account_db(Database) ->
_ = ensure_account_definition(AccountDb, AccountId),
Views = get_all_account_views(),
_ = whapps_util:update_views(AccountDb, Views, 'true'),
_ = webhooks_maintenance:reset_webhooks_list(),
crossbar_util:descendants_count(AccountId).

-spec remove_depreciated_account_views(ne_binary()) -> 'ok'.
Expand Down Expand Up @@ -485,6 +486,7 @@ get_all_account_views() ->
fetch_all_account_views() ->
[whapps_util:get_view_json('whistle_apps', ?MAINTENANCE_VIEW_FILE)
,whapps_util:get_view_json('conference', <<"views/conference.json">>)
,whapps_util:get_view_json('webhooks', <<"webhooks.json">>)
|whapps_util:get_views_json('crossbar', "account")
++ whapps_util:get_views_json('callflow', "views")
].
Expand Down

0 comments on commit 5456c3c

Please sign in to comment.