Skip to content

Commit

Permalink
Refactor Server model to remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Nov 2, 2024
1 parent 0c77a82 commit 8b25630
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/Models/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -879,8 +879,6 @@ public function destinations()
$standalone_docker = $this->hasMany(StandaloneDocker::class)->get();
$swarm_docker = $this->hasMany(SwarmDocker::class)->get();

// $additional_dockers = $this->belongsToMany(StandaloneDocker::class, 'additional_destinations')->withPivot('server_id')->get();
// return $standalone_docker->concat($swarm_docker)->concat($additional_dockers);
return $standalone_docker->concat($swarm_docker);
}

Expand Down

0 comments on commit 8b25630

Please sign in to comment.