Skip to content

Commit 4e66ba0

Browse files
committed
Fix locations error on create
1 parent 6148a3b commit 4e66ba0

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

app/Http/Controllers/Admin/NodesController.php

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,11 @@ public function postNew(Request $request)
7878
try {
7979
$repo = new NodeRepository;
8080
$node = $repo->create($request->only([
81-
'name',
82-
'location',
83-
'public',
84-
'fqdn',
85-
'scheme',
86-
'memory',
87-
'memory_overallocate',
88-
'disk',
89-
'disk_overallocate',
90-
'daemonBase',
91-
'daemonSFTP',
92-
'daemonListen',
81+
'name', 'location_id', 'public',
82+
'fqdn', 'scheme', 'memory',
83+
'memory_overallocate', 'disk',
84+
'disk_overallocate', 'daemonBase',
85+
'daemonSFTP', 'daemonListen',
9386
]));
9487
Alert::success('Successfully created new node that can be configured automatically on your remote machine by visiting the configuration tab. <strong>Before you can add any servers you need to first assign some IP addresses and ports.</strong>')->flash();
9588

@@ -129,7 +122,7 @@ public function postView(Request $request, $id)
129122
try {
130123
$node = new NodeRepository;
131124
$node->update($id, $request->only([
132-
'name', 'location', 'public',
125+
'name', 'location_id', 'public',
133126
'fqdn', 'scheme', 'memory',
134127
'memory_overallocate', 'disk',
135128
'disk_overallocate', 'upload_size',

0 commit comments

Comments
 (0)