Merge pull request #262 from henrywhitaker3/alpha

Update
This commit is contained in:
Henry Whitaker
2020-08-15 17:27:09 +01:00
committed by GitHub

View File

@@ -4,6 +4,7 @@ namespace App\Providers;
use App\Helpers\SettingsHelper;
use Exception;
use File;
use Henrywhitaker3\Healthchecks\Healthchecks;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Log;
@@ -34,6 +35,7 @@ class IntegrationsServiceProvider extends ServiceProvider
*/
public function boot()
{
if(File::exists(env('DB_DATABASE'))) {
if(Schema::hasTable('settings')) {
$settings = [
'healthchecks_enabled' => (bool)SettingsHelper::get('healthchecks_enabled')->value,
@@ -66,4 +68,5 @@ class IntegrationsServiceProvider extends ServiceProvider
}
}
}
}
}