mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
25 lines
602 B
PHP
25 lines
602 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Services\Gdpr\GdprRetentionService;
|
|
use Illuminate\Console\Command;
|
|
|
|
class GdprPurgeExpiredExports extends Command
|
|
{
|
|
protected $signature = 'gdpr:purge-expired-exports';
|
|
|
|
protected $description = 'Purge expired GDPR export files while retaining the request audit record.';
|
|
|
|
public function handle(GdprRetentionService $retentionService): int
|
|
{
|
|
$count = $retentionService->purgeExpiredExports();
|
|
|
|
$this->info("Purged {$count} expired GDPR export file(s).");
|
|
|
|
return self::SUCCESS;
|
|
}
|
|
}
|