From 705f40196172e71c48081aacc0efaba0aa7d99d4 Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 18 Dec 2020 20:26:11 +0100 Subject: [PATCH] Fix a pair of pubsub specs to please Dialyzer --- src/pubsub_db_sql.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pubsub_db_sql.erl b/src/pubsub_db_sql.erl index bca8e119c..2e350e6ac 100644 --- a/src/pubsub_db_sql.erl +++ b/src/pubsub_db_sql.erl @@ -35,7 +35,7 @@ delete_subscription/1, update_subscription/1]). -export([export/1]). --spec read_subscription(SubID :: string()) -> {ok, #pubsub_subscription{}} | notfound. +-spec read_subscription(SubID :: mod_pubsub:subId()) -> {ok, #pubsub_subscription{}} | notfound. read_subscription(SubID) -> case ejabberd_sql:sql_query_t( @@ -49,7 +49,7 @@ read_subscription(SubID) -> options = lists:map(fun subscription_opt_from_sql/1, Options)}} end. --spec delete_subscription(SubID :: string()) -> ok. +-spec delete_subscription(SubID :: mod_pubsub:subId()) -> ok. delete_subscription(SubID) -> ejabberd_sql:sql_query_t( ?SQL("delete from pubsub_subscription_opt "