Skip to content

Commit

Permalink
KAZOO-6089: allow the delete to proceed if missing (2600hz#5722)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-anderson authored and jamesaimonetti committed Apr 29, 2019
1 parent 73ae5a0 commit a9717bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/kazoo_services/src/kz_services.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ delete(?MATCH_ACCOUNT_RAW(AccountId)) ->
delete(fetch(AccountId));
delete(#kz_services{}=Services) ->
%% TODO: cancel services with all bookkeepers...
{'ok', _} = kz_datamgr:del_doc(?KZ_SERVICES_DB, kz_doc:id(services_jobj(Services))),
_ = kz_datamgr:del_doc(?KZ_SERVICES_DB, kz_doc:id(services_jobj(Services))),
Services.

%%------------------------------------------------------------------------------
Expand Down

0 comments on commit a9717bc

Please sign in to comment.