From 9222b72c7e431ab137ad492b500048ea4db3b0b7 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 12 Apr 2021 22:16:17 +1000 Subject: [PATCH] Test for truth --- app/Libraries/MultiDB.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Libraries/MultiDB.php b/app/Libraries/MultiDB.php index 9bcce553aa23..7b69e223894b 100644 --- a/app/Libraries/MultiDB.php +++ b/app/Libraries/MultiDB.php @@ -255,7 +255,7 @@ class MultiDB { if (! config('ninja.db.multi_db_enabled')) - return (Company::on($db)->whereSubdomain($subdomain)->exists() === true); + return (Company::whereSubdomain($subdomain)->exists() === true); foreach (self::$dbs as $db) { if ($company = Company::on($db)->whereSubdomain($subdomain)->first()) {