Misc. bug fixes

This commit is contained in:
Dane Everitt
2017-04-01 12:29:56 -04:00
parent 844ebfaf64
commit 27d472195f
2 changed files with 2 additions and 1 deletions

View File

@@ -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.');