Skip to content

Commit

Permalink
fix: #174 ignore deleted services
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-shulha committed Sep 6, 2024
1 parent d06d411 commit fc56048
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use App\Console\Commands\DispatchVolumeBackupTask;
use App\Http\Middleware\HandleInertiaRequests;
use App\Jobs\CheckAgentUpdates;
use App\Models\Scopes\TeamScope;
use App\Models\Service;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Application;
Expand Down Expand Up @@ -55,7 +56,7 @@
->onOneServer()
->withoutOverlapping();

Service::withoutGlobalScopes()->with(['latestDeployment' => fn ($query) => $query->withoutGlobalScopes()])->chunk(100, function (
Service::withoutGlobalScope(TeamScope::class)->with(['latestDeployment'])->chunk(100, function (
/* @var Service[] $services */
$services
) use ($schedule) {
Expand Down

0 comments on commit fc56048

Please sign in to comment.