From 7193bbaaef1962454ecd881c7ee37d4ebcc8051e Mon Sep 17 00:00:00 2001 From: Nelson Vides Date: Fri, 23 Sep 2022 16:58:17 +0200 Subject: [PATCH] Enable to notify of modules failing to remove their data --- src/mongoose_hooks.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mongoose_hooks.erl b/src/mongoose_hooks.erl index 4c876d4aba5..5ed0e0b3bca 100644 --- a/src/mongoose_hooks.erl +++ b/src/mongoose_hooks.erl @@ -235,9 +235,9 @@ does_user_exist(HostType, Jid, RequestType) -> -spec remove_domain(HostType, Domain) -> Result when HostType :: binary(), Domain :: jid:lserver(), - Result :: ok. + Result :: #{failed => [module()]}. remove_domain(HostType, Domain) -> - run_hook_for_host_type(remove_domain, HostType, #{}, [HostType, Domain]). + run_hook_for_host_type(remove_domain, HostType, #{failed => []}, [HostType, Domain]). -spec node_cleanup(Node :: node()) -> Acc :: map(). node_cleanup(Node) ->