mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
cleanup
This commit is contained in:
parent
3e66320d8b
commit
7a141f2631
@ -28,9 +28,8 @@ class SubdomainController extends BaseController
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$subdomain_exists = MultiDB::findAndSetDbByDomain(request()->input('subdomain'));
|
||||
|
||||
if($subdomain_exists)
|
||||
if( MultiDB::findAndSetDbByDomain(request()->input('subdomain')) )
|
||||
return response()->json(['message' => 'Domain not available'] , 401);
|
||||
|
||||
return response()->json(['message' => 'Domain available'], 200);
|
||||
|
Loading…
x
Reference in New Issue
Block a user