Skip to content

Commit

Permalink
Fix prune & description
Browse files Browse the repository at this point in the history
  • Loading branch information
RMartinOscar committed Oct 28, 2024
1 parent 501ca95 commit 40f6cf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Filament/Pages/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ private function miscSettings(): array
->default(env('PANEL_EDITABLE_SERVER_DESCRIPTIONS', config('panel.editable_server_descriptions'))),
]),
Section::make('Webhook')
->description('Configure how often old Webhook should be pruned.')
->description('Configure how often old webhook logs should be pruned.')
->columns()
->collapsible()
->collapsed()
Expand Down
2 changes: 1 addition & 1 deletion app/Models/WebhookConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,6 @@ public static function discoverCustomEvents(): array
*/
public function prunable(): Builder
{
return static::where('deleted_at', '<=', Carbon::now()->subDays(config('webhook.prune_days')));
return static::where('created_at', '<=', Carbon::now()->subDays(config('webhook.prune_days')));
}
}

0 comments on commit 40f6cf9

Please sign in to comment.