diff options
author | Badlop <badlop@process-one.net> | 2020-12-18 20:26:11 +0100 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2020-12-18 20:40:26 +0100 |
commit | 705f40196172e71c48081aacc0efaba0aa7d99d4 (patch) | |
tree | 34655c5d49ced7a15966fa6a7a6a728d7f64d7eb /src/pubsub_db_sql.erl | |
parent | Fix typo in case clause detected by Dialyzer (diff) |
Fix a pair of pubsub specs to please Dialyzer
Diffstat (limited to 'src/pubsub_db_sql.erl')
-rw-r--r-- | src/pubsub_db_sql.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pubsub_db_sql.erl b/src/pubsub_db_sql.erl index bca8e119..2e350e6a 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 " |