From: Paweł Chmielowski Date: Fri, 29 Mar 2019 17:41:51 +0000 (+0100) Subject: Don't use deprecated gen_mod:db_type X-Git-Tag: 19.05~111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b040f65a307a438d9e8574f1f6d4fac838277f5;p=ejabberd Don't use deprecated gen_mod:db_type --- diff --git a/src/mod_mam_sql.erl b/src/mod_mam_sql.erl index 52e46f485..7716d6ddf 100644 --- a/src/mod_mam_sql.erl +++ b/src/mod_mam_sql.erl @@ -188,8 +188,8 @@ select(LServer, JidRequestor, #jid{luser = LUser} = JidArchive, {error, db_failure}. select_with_mucsub(LServer, JidRequestor, #jid{luser = LUser} = JidArchive, MAMQuery, RSM) -> - Extra = case gen_mod:db_type(LServer, mod_muc) of - sql -> + Extra = case gen_mod:db_mod(LServer, mod_muc) of + mod_muc_sql -> subscribers_table; _ -> SubRooms = case mod_muc_admin:find_hosts(LServer) of