Skip to content

Commit 27d4721

Browse files
committed
Misc. bug fixes
1 parent 844ebfa commit 27d4721

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/Repositories/PackRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public function update($id, array $data)
225225
*/
226226
public function delete($id)
227227
{
228-
$pack = Models\Pack::withCount('servers')->findOrFail($id);
228+
$pack = Pack::withCount('servers')->findOrFail($id);
229229

230230
if ($pack->servers_count > 0) {
231231
throw new DisplayException('Cannot delete a pack from the system if servers are assocaited with it.');

app/Repositories/ServerRepository.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ public function create(array $data)
248248
'uuidShort' => $genShortUuid,
249249
'node_id' => $node->id,
250250
'name' => $data['name'],
251+
'description' => $data['description'],
251252
'suspended' => 0,
252253
'owner_id' => $user->id,
253254
'memory' => $data['memory'],

0 commit comments

Comments
 (0)