Skip to content

Commit 56478d8

Browse files
stanjgDaneEveritt
authored andcommitted
Added cast for 'public' field (pterodactyl#1085)
The missing cast was resulting in the API to send a 0 or 1 instead of true or false for the public field
1 parent b65b795 commit 56478d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/Models/Node.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class Node extends Model implements CleansAttributes, ValidableContract
4848
'daemonListen' => 'integer',
4949
'daemonSFTP' => 'integer',
5050
'behind_proxy' => 'boolean',
51+
'public' => 'boolean',
5152
];
5253

5354
/**

0 commit comments

Comments
 (0)