fix: removing eager loading (#6071)

since the destionations relationship is not really needed, we could
remove it and avoid the issue with the missing eager constraint.

Co-authored-by: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com>
This commit is contained in:
Hicro
2025-07-01 06:10:47 -03:00
committed by GitHub
parent 24688b2ad8
commit 43bcfe8d02

View File

@@ -56,7 +56,6 @@ class CloneMe extends Component
$this->project_id = $this->project->id;
$this->servers = currentTeam()
->servers()
->with('destinations')
->get()
->reject(fn ($server) => $server->isBuildServer());
$this->newName = str($this->project->name.'-clone-'.(string) new Cuid2)->slug();