perf(server): optimize destinationsByServer query (#7854)
This commit is contained in:
commit
e4e0618cea
1 changed files with 1 additions and 1 deletions
|
|
@ -272,7 +272,7 @@ public static function isUsable()
|
|||
|
||||
public static function destinationsByServer(string $server_id)
|
||||
{
|
||||
$server = Server::ownedByCurrentTeam()->get()->where('id', $server_id)->firstOrFail();
|
||||
$server = Server::ownedByCurrentTeam()->findOrFail($server_id);
|
||||
$standaloneDocker = collect($server->standaloneDockers->all());
|
||||
$swarmDocker = collect($server->swarmDockers->all());
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue