Fix mounting behavior to work correctly when adding to a server

This commit is contained in:
DaneEveritt 2022-05-30 11:33:42 -04:00
parent dbc9846320
commit 4213775b5c
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 8 additions and 7 deletions

View file

@ -392,10 +392,10 @@ class ServersController extends Controller
*
* @throws \Throwable
*/
public function addMount(Server $server, Mount $mount)
public function addMount(Request $request, Server $server)
{
$mountServer = (new MountServer())->forceFill([
'mount_id' => $mount->id,
'mount_id' => $request->input('mount_id'),
'server_id' => $server->id,
]);