Skip to content

Commit

Permalink
Limit to 7 days + cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrLevin committed Nov 4, 2024
1 parent 0648d25 commit d0182fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use App\Console\Commands\WikidataFetcher;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use Spatie\PersonalDataExport\Commands\CleanOldPersonalDataExportsCommand;

class Kernel extends ConsoleKernel
{
Expand Down Expand Up @@ -44,6 +45,7 @@ protected function schedule(Schedule $schedule): void {
//daily tasks
$schedule->command(DatabaseCleaner::class)->daily();
$schedule->command(CleanUpProfilePictures::class)->daily();
$schedule->command(CleanOldPersonalDataExportsCommand::class)->daily();

//weekly tasks
$schedule->command(MastodonServers::class)->weekly();
Expand Down
2 changes: 1 addition & 1 deletion config/personal-data-export.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/*
* The amount of days the exports will be available.
*/
'delete_after_days' => 5,
'delete_after_days' => 7,

/*
* Determines whether the user should be logged in to be able
Expand Down

0 comments on commit d0182fc

Please sign in to comment.