]> granicus.if.org Git - ejabberd/commitdiff
Don't use deprecated gen_mod:db_type
authorPaweł Chmielowski <pchmielowski@process-one.net>
Fri, 29 Mar 2019 17:41:51 +0000 (18:41 +0100)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Fri, 29 Mar 2019 17:41:51 +0000 (18:41 +0100)
src/mod_mam_sql.erl

index 52e46f48568f731cb194450b9b2d966aef82baa9..7716d6ddfacf50ad0ca8eb7f112ed50d22b5305f 100644 (file)
@@ -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