24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-08 21:43:07 +02:00

Don't use deprecated gen_mod:db_type

This commit is contained in:
Paweł Chmielowski 2019-03-29 18:41:51 +01:00
parent 24b9b69783
commit 9b040f65a3

View File

@ -188,8 +188,8 @@ select(LServer, JidRequestor, #jid{luser = LUser} = JidArchive,
{error, db_failure}. {error, db_failure}.
select_with_mucsub(LServer, JidRequestor, #jid{luser = LUser} = JidArchive, select_with_mucsub(LServer, JidRequestor, #jid{luser = LUser} = JidArchive,
MAMQuery, RSM) -> MAMQuery, RSM) ->
Extra = case gen_mod:db_type(LServer, mod_muc) of Extra = case gen_mod:db_mod(LServer, mod_muc) of
sql -> mod_muc_sql ->
subscribers_table; subscribers_table;
_ -> _ ->
SubRooms = case mod_muc_admin:find_hosts(LServer) of SubRooms = case mod_muc_admin:find_hosts(LServer) of