mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix delete_old_messages command for SQL backends
This commit is contained in:
parent
fd6f0f94b5
commit
305d4c05dc
@ -81,7 +81,7 @@ remove_old_messages(Days, LServer) ->
|
||||
[<<"DELETE FROM spool"
|
||||
" WHERE created_at < "
|
||||
"NOW() - INTERVAL '">>,
|
||||
integer_to_list(Days), <<"';">>]) of
|
||||
integer_to_list(Days), <<"' DAY;">>]) of
|
||||
{updated, N} ->
|
||||
?INFO_MSG("~p message(s) deleted from offline spool", [N]);
|
||||
_Error ->
|
||||
|
Loading…
Reference in New Issue
Block a user