mirror of
https://github.com/bitinflow/expose.git
synced 2026-10-31 20:59:09 +00:00
wip
This commit is contained in:
1 parent
2c90707e28
commit
01843173bc
1 file changed
+8
@@ -34,6 +34,14 @@ class GetUserDetailsController extends AdminController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$promise->then(function ($user) use ($httpConnection) {
|
$promise->then(function ($user) use ($httpConnection) {
|
||||||
|
if (is_null($user)) {
|
||||||
|
$httpConnection->send(
|
||||||
|
respond_json([], 404)
|
||||||
|
);
|
||||||
|
|
||||||
|
$httpConnection->close();
|
||||||
|
return;
|
||||||
|
}
|
||||||
$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(
|
||||||
|
|||||||
Reference in new issue
Block a user