mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-18 16:05:55 +00:00
Remove subdomain reserve check from server
This commit is contained in:
@@ -92,14 +92,6 @@ class DatabaseSubdomainRepository implements SubdomainRepository
|
|||||||
{
|
{
|
||||||
$deferred = new Deferred();
|
$deferred = new Deferred();
|
||||||
|
|
||||||
$this->getSubdomainByName($data['subdomain'])
|
|
||||||
->then(function ($registeredSubdomain) use ($data, $deferred) {
|
|
||||||
if (! is_null($registeredSubdomain)) {
|
|
||||||
$deferred->resolve(null);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->database->query("
|
$this->database->query("
|
||||||
INSERT INTO subdomains (user_id, subdomain, domain, created_at)
|
INSERT INTO subdomains (user_id, subdomain, domain, created_at)
|
||||||
VALUES (:user_id, :subdomain, :domain, DATETIME('now'))
|
VALUES (:user_id, :subdomain, :domain, DATETIME('now'))
|
||||||
@@ -110,7 +102,6 @@ class DatabaseSubdomainRepository implements SubdomainRepository
|
|||||||
$deferred->resolve($result->rows[0]);
|
$deferred->resolve($result->rows[0]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
return $deferred->promise();
|
return $deferred->promise();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user