Repository: alexjustesen/speedtest-tracker (language: php)

Issue:
[Bug] Models are not being pruned when enabled
> @alexjustesen With the latest version (1.2.2), when I run the above discussed command, I get the following output:
> `14537 [App\Models\Result] records will be pruned.`
> 
> And the records have not been pruned after running the app for a day. From our previous discussions, I recall that the pruning process is launched at midnight, but looks like it hasn't been executed yet. 
> 
> SIDE NOTE: I'm running an external MariaDB database for SpeedTest-Tracker. 

 _Originally posted by @armond-avanes in [#2006](https://github.com/alexjustesen/speedtest-tracker/issues/2006#issuecomment-2634689467)_


Discussion / hints:

Fix patch:
diff --git a/routes/console.php b/routes/console.php
index cf147f7fd..16aca67af 100644
--- a/routes/console.php
+++ b/routes/console.php
@@ -9,7 +9,7 @@
 Schedule::command('model:prune')
     ->daily()
     ->when(function () {
-        return config('speedtest.prune_speedtests_older_than') > 0;
+        return config('speedtest.prune_results_older_than') > 0;
     });
 
 /**


Test patch: