Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2527793
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/app/Console/Commands/Policy/Greylist/ExpungeCommand.php b/src/app/Console/Commands/Policy/Greylist/ExpungeCommand.php
index d2c13dad..28b95a57 100644
--- a/src/app/Console/Commands/Policy/Greylist/ExpungeCommand.php
+++ b/src/app/Console/Commands/Policy/Greylist/ExpungeCommand.php
@@ -1,36 +1,36 @@
<?php
namespace App\Console\Commands\Policy\Greylist;
use Illuminate\Console\Command;
class ExpungeCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'policy:greylist:expunge';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Expunge old records from the policy greylist tables';
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
- \App\Policy\Greylist\Connect::where('updated_at', '<', \Carbon\Carbon::now()->subMonthsWithoutOverflow(6))
+ \App\Policy\Greylist\Connect::where('updated_at', '<', \Carbon\Carbon::now()->subMonthsWithoutOverflow(2))
->delete();
- \App\Policy\Greylist\Whitelist::where('updated_at', '<', \Carbon\Carbon::now()->subMonthsWithoutOverflow(6))
+ \App\Policy\Greylist\Whitelist::where('updated_at', '<', \Carbon\Carbon::now()->subMonthsWithoutOverflow(2))
->delete();
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Jan 31, 1:29 PM (22 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
426314
Default Alt Text
(1 KB)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment