fix(clone): update destinations method call to ensure correct retrieval of selected destination
This commit is contained in:
parent
c1799bdae6
commit
074c70c8ab
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ public function clone(string $type)
|
|||
$databases = $this->environment->databases();
|
||||
$services = $this->environment->services;
|
||||
foreach ($applications as $application) {
|
||||
$selectedDestination = $this->servers->flatMap(fn ($server) => $server->destinations)->where('id', $this->selectedDestination)->first();
|
||||
$selectedDestination = $this->servers->flatMap(fn ($server) => $server->destinations())->where('id', $this->selectedDestination)->first();
|
||||
clone_application($application, $selectedDestination, [
|
||||
'environment_id' => $environment->id,
|
||||
], $this->cloneVolumeData);
|
||||
|
|
|
|||
Loading…
Reference in a new issue