File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
app/Transformers/Api/Application Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ This file is a running track of new features and fixes to each version of the pa
33
44This project follows [ Semantic Versioning] ( http://semver.org ) guidelines.
55
6+ ## Unreleased
7+ ### Fixed
8+ * Fixes the application API unable to return server's variables.
9+
610## v1.1.3
711### Fixed
812* Server bulk power actions command will no longer attempt to run commands against installing or suspended servers.
Original file line number Diff line number Diff line change 22
33namespace Pterodactyl \Transformers \Api \Application ;
44
5- use Pterodactyl \Models \ServerVariable ;
5+ use Pterodactyl \Models \EggVariable ;
66use Pterodactyl \Services \Acl \Api \AdminAcl ;
77
88class ServerVariableTransformer extends BaseTransformer
@@ -27,22 +27,22 @@ public function getResourceName(): string
2727 /**
2828 * Return a generic transformed server variable array.
2929 *
30- * @param \Pterodactyl\Models\ServerVariable $variable
30+ * @param \Pterodactyl\Models\EggVariable $variable
3131 * @return array
3232 */
33- public function transform (ServerVariable $ variable )
33+ public function transform (EggVariable $ variable )
3434 {
3535 return $ variable ->toArray ();
3636 }
3737
3838 /**
3939 * Return the parent service variable data.
4040 *
41- * @param \Pterodactyl\Models\ServerVariable $variable
41+ * @param \Pterodactyl\Models\EggVariable $variable
4242 * @return \League\Fractal\Resource\Item|\League\Fractal\Resource\NullResource
4343 * @throws \Pterodactyl\Exceptions\Transformer\InvalidTransformerLevelException
4444 */
45- public function includeParent (ServerVariable $ variable )
45+ public function includeParent (EggVariable $ variable )
4646 {
4747 if (! $ this ->authorize (AdminAcl::RESOURCE_EGGS )) {
4848 return $ this ->null ();
You can’t perform that action at this time.
0 commit comments