Merge branch 'master' of github.com:beyondcode/phunnel

This commit is contained in:
Marcel Pociot
2021-06-01 21:19:24 +02:00

View File

@@ -33,8 +33,8 @@ class GetUserDetailsController extends AdminController
$promise = $this->userRepository->getUserById($id); $promise = $this->userRepository->getUserById($id);
} }
$promise->then(function ($user) use ($httpConnection, $request) { $promise->then(function ($user) use ($httpConnection) {
$this->subdomainRepository->getSubdomainsByUserId($user['id']) $this->subdomainRepository->getSubdomainsByUserId($user['id'])
->then(function ($subdomains) use ($httpConnection, $user) { ->then(function ($subdomains) use ($httpConnection, $user) {
$httpConnection->send( $httpConnection->send(
respond_json([ respond_json([
@@ -45,6 +45,6 @@ class GetUserDetailsController extends AdminController
$httpConnection->close(); $httpConnection->close();
}); });
}); });
} }
} }