Skip to content
Snippets Groups Projects
Unverified Commit 24dbd3b3 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4253 from JediKev/issue/files-deleteOrphans

issue: Files - deleteOrphans()
parents 1f9de0f2 a3e04e82
No related branches found
No related tags found
No related merge requests found
......@@ -635,7 +635,7 @@ class AttachmentFile extends VerySimpleModel {
->filter(array(
'attachments__object_id__isnull' => true,
'ft' => 'T',
'created__gt' => new DateTime('now -1 day'),
'created__lt' => SqlFunction::NOW()->minus(SqlInterval::DAY(1)),
));
foreach ($files as $f) {
......
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