From 25bf8895e21f009c79f36cde0a3889277021ee17 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 15 Nov 2023 10:20:48 +0100 Subject: [PATCH] Add InstanceSettings to Init command --- app/Console/Commands/Init.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Console/Commands/Init.php b/app/Console/Commands/Init.php index cdac6d74f..f29ba6f98 100644 --- a/app/Console/Commands/Init.php +++ b/app/Console/Commands/Init.php @@ -5,6 +5,7 @@ use App\Enums\ApplicationDeploymentStatus; use App\Models\Application; use App\Models\ApplicationDeploymentQueue; +use App\Models\InstanceSettings; use App\Models\Service; use App\Models\ServiceApplication; use App\Models\ServiceDatabase; @@ -35,6 +36,11 @@ public function handle() private function alive() { $id = config('app.id'); + $settings = InstanceSettings::get(); + $do_not_track = data_get($settings, 'do_not_track'); + if ($do_not_track) { + return; + } try { Http::get("https://get.coollabs.io/coolify/v4/alive?appId=$id"); } catch (\Throwable $e) {