mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
More code updates
This commit is contained in:
@@ -140,8 +140,9 @@ class ServerRepository extends EloquentRepository implements ServerRepositoryInt
|
||||
*/
|
||||
public function getDaemonServiceData($id)
|
||||
{
|
||||
$instance = $this->getBuilder()->with('egg.nest', 'pack')->find($id, $this->getColumns());
|
||||
Assert::integerish($id, 'First argument passed to getDaemonServiceData must be integer, received %s.');
|
||||
|
||||
$instance = $this->getBuilder()->with('egg.nest', 'pack')->find($id, $this->getColumns());
|
||||
if (! $instance) {
|
||||
throw new RecordNotFoundException();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user