This commit is contained in:
Marcel Pociot
2021-06-02 11:58:57 +02:00
parent 2c90707e28
commit 01843173bc

View File

@@ -34,6 +34,14 @@ class GetUserDetailsController extends AdminController
}
$promise->then(function ($user) use ($httpConnection) {
if (is_null($user)) {
$httpConnection->send(
respond_json([], 404)
);
$httpConnection->close();
return;
}
$this->subdomainRepository->getSubdomainsByUserId($user['id'])
->then(function ($subdomains) use ($httpConnection, $user) {
$httpConnection->send(