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) ->