Skip to content
Snippets Groups Projects
Commit 9af30868 authored by Jared Hancock's avatar Jared Hancock
Browse files

files: Orphaned files hang around for 24 hours

parent b64a1904
No related branches found
No related tags found
No related merge requests found
......@@ -587,7 +587,7 @@ class AttachmentFile {
.'SELECT file_id FROM '.TICKET_ATTACHMENT_TABLE
.' UNION '
.'SELECT file_id FROM '.ATTACHMENT_TABLE
.") AND `ft` = 'T'";
.") AND `ft` = 'T' AND TIMESTAMPDIFF(DAY, `created`, CURRENT_TIMESTAMP) > 1";
if (!($res = db_query($sql)))
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment