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