25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

mod_push: Fix API call return type on error

A call that yields a 'rescode' isn't supposed to return an error tuple.
This commit is contained in:
Holger Weiss 2020-11-04 09:07:30 +01:00
parent 37c75f556d
commit f40c5c304d

View File

@ -243,9 +243,9 @@ delete_old_sessions(Days) ->
[] ->
?INFO_MSG("Deleted push sessions older than ~B days", [Days]),
ok;
[NotOk | _] ->
[{error, Reason} | _] ->
?ERROR_MSG("Error while deleting old push sessions: ~p", [NotOk]),
NotOk
Reason
end.
%%--------------------------------------------------------------------