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:
parent
fd6f0f94b5
commit
305d4c05dc
@ -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 ->
|
||||||
|
Loading…
Reference in New Issue
Block a user