25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Fix delete_old_messages command for SQL backends

This commit is contained in:
Jerome Sautret 2016-10-10 11:32:36 +02:00
parent fd6f0f94b5
commit 305d4c05dc

View File

@ -81,7 +81,7 @@ remove_old_messages(Days, LServer) ->
[<<"DELETE FROM spool" [<<"DELETE FROM spool"
" WHERE created_at < " " WHERE created_at < "
"NOW() - INTERVAL '">>, "NOW() - INTERVAL '">>,
integer_to_list(Days), <<"';">>]) of integer_to_list(Days), <<"' DAY;">>]) of
{updated, N} -> {updated, N} ->
?INFO_MSG("~p message(s) deleted from offline spool", [N]); ?INFO_MSG("~p message(s) deleted from offline spool", [N]);
_Error -> _Error ->