chore: remove webhooks table cleanup

This commit is contained in:
peaklabs-dev
2025-09-10 19:56:15 +02:00
parent d9ebf3b142
commit 3e9dd6a7bf

View File

@@ -64,13 +64,5 @@ class CleanupDatabase extends Command
if ($this->option('yes')) {
$scheduled_task_executions->delete();
}
// Cleanup webhooks table
$webhooks = DB::table('webhooks')->where('created_at', '<', now()->subDays($keep_days));
$count = $webhooks->count();
echo "Delete $count entries from webhooks.\n";
if ($this->option('yes')) {
$webhooks->delete();
}
}
}