Small fixes
This commit is contained in:
		
							parent
							
								
									191e0adc58
								
							
						
					
					
						commit
						666634ae88
					
				| @ -91,7 +91,7 @@ class NodeViewController extends Controller | ||||
| 
 | ||||
|         return $this->view->make('admin.nodes.view.servers', [ | ||||
|             'node' => $node, | ||||
|             'servers' => $node->servers()->with(['user', 'nest', 'egg'])->paginate(25), | ||||
|             'servers' => $node->servers()->with(['user', 'egg'])->paginate(25), | ||||
|         ]); | ||||
|     } | ||||
| } | ||||
|  | ||||
| @ -28,7 +28,7 @@ class ServerInstallController extends Controller | ||||
|      */ | ||||
|     public function index(Request $request, string $uuid): JsonResponse | ||||
|     { | ||||
|         $server = $this->repository->getByUuid($uuid); | ||||
|         $server = Server::findOrFailByUuid($uuid); | ||||
|         $egg = $server->egg; | ||||
| 
 | ||||
|         return new JsonResponse([ | ||||
|  | ||||
| @ -363,7 +363,7 @@ class Server extends Model | ||||
|     public static function findOrFailByUuid(string $uuid): Server | ||||
|     { | ||||
|         /** @var Server $server */ | ||||
|         $server = Server::with(['nest', 'node']) | ||||
|         $server = Server::with(['node']) | ||||
|             ->where('uuidShort', $uuid) | ||||
|             ->orWhere('uuid', $uuid) | ||||
|             ->firstOrFail(); | ||||
|  | ||||
| @ -9,7 +9,6 @@ use App\Models\Subuser; | ||||
| use Illuminate\Database\ConnectionInterface; | ||||
| use App\Services\Users\UserCreationService; | ||||
| use App\Repositories\Eloquent\SubuserRepository; | ||||
| use App\Exceptions\Repository\RecordNotFoundException; | ||||
| use App\Exceptions\Service\Subuser\UserIsServerOwnerException; | ||||
| use App\Exceptions\Service\Subuser\ServerSubuserExistsException; | ||||
| 
 | ||||
| @ -22,7 +21,6 @@ class SubuserCreationService | ||||
|         private ConnectionInterface $connection, | ||||
|         private SubuserRepository $subuserRepository, | ||||
|         private UserCreationService $userCreationService, | ||||
|         private UserRepositoryInterface $userRepository | ||||
|     ) { | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Lance Pioch
						Lance Pioch