fix(invites): hint at type for landing_page opt
This commit is contained in:
@@ -250,6 +250,8 @@ mod_doc() ->
|
||||
" allow_modules:",
|
||||
" - mod_invites"]}]}.
|
||||
|
||||
-spec mod_options(binary()) ->
|
||||
[{landing_page, none | auto | binary()} | {atom(), any()}].
|
||||
mod_options(Host) ->
|
||||
[{access_create_account, none},
|
||||
{db_type, ejabberd_config:default_db(Host, ?MODULE)},
|
||||
|
||||
@@ -23,7 +23,7 @@ db_type(Opts) when is_map(Opts) ->
|
||||
db_type(Host) ->
|
||||
gen_mod:get_module_opt(Host, mod_invites, db_type).
|
||||
|
||||
-spec landing_page(gen_mod:opts() | global | binary()) -> any().
|
||||
-spec landing_page(gen_mod:opts() | global | binary()) -> 'none' | 'auto' | binary().
|
||||
landing_page(Opts) when is_map(Opts) ->
|
||||
gen_mod:get_opt(landing_page, Opts);
|
||||
landing_page(Host) ->
|
||||
|
||||
Reference in New Issue
Block a user