app(services): fix DeployServerDatabaseService phpstan
This commit is contained in:
parent
733771ae75
commit
0af39492e3
|
@ -38,7 +38,9 @@ class DeployServerDatabaseService
|
|||
throw new NoSuitableDatabaseHostException();
|
||||
}
|
||||
|
||||
$databaseHostId = $hosts->random()->id;
|
||||
/** @var \Pterodactyl\Models\DatabaseHost $databaseHost */
|
||||
$databaseHost = $hosts->random();
|
||||
$databaseHostId = $databaseHost->id;
|
||||
}
|
||||
|
||||
return $this->managementService->create($server, [
|
||||
|
|
Loading…
Reference in New Issue