diff --git a/app/Repositories/PackRepository.php b/app/Repositories/PackRepository.php index f7a2c2d2a..0a8854465 100644 --- a/app/Repositories/PackRepository.php +++ b/app/Repositories/PackRepository.php @@ -225,7 +225,7 @@ class PackRepository */ public function delete($id) { - $pack = Models\Pack::withCount('servers')->findOrFail($id); + $pack = Pack::withCount('servers')->findOrFail($id); if ($pack->servers_count > 0) { throw new DisplayException('Cannot delete a pack from the system if servers are assocaited with it.'); diff --git a/app/Repositories/ServerRepository.php b/app/Repositories/ServerRepository.php index b905c5aae..41224b100 100644 --- a/app/Repositories/ServerRepository.php +++ b/app/Repositories/ServerRepository.php @@ -248,6 +248,7 @@ class ServerRepository 'uuidShort' => $genShortUuid, 'node_id' => $node->id, 'name' => $data['name'], + 'description' => $data['description'], 'suspended' => 0, 'owner_id' => $user->id, 'memory' => $data['memory'],