mirror of
https://github.com/alexjustesen/speedtest-tracker.git
synced 2026-06-23 04:20:08 +00:00
Fix: Skip SkipSpeedtestJob when env var is empty (#2626)
Co-authored-by: Alex Justesen <alexjustesen@users.noreply.github.com>
This commit is contained in:
@@ -40,9 +40,9 @@ class SkipSpeedtestJob implements ShouldQueue
|
||||
public function handle(): void
|
||||
{
|
||||
/**
|
||||
* Only skip IPs for scheduled tests.
|
||||
* Skip if test is not scheduled or no IPs are configured to skip.
|
||||
*/
|
||||
if ($this->result->scheduled === false) {
|
||||
if ($this->result->scheduled === false || empty(config('speedtest.preflight.skip_ips'))) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user