From e9a2310f62b0074558bea8c3542ac0fd6db77f6b Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 25 May 2023 15:48:26 +0200 Subject: [PATCH] remove default value --- app/Actions/Proxy/InstallProxy.php | 2 +- app/Actions/Server/InstallDocker.php | 2 +- app/Http/Livewire/RunCommand.php | 2 +- app/Http/Livewire/Settings/Form.php | 4 ++-- app/Jobs/InstanceAutoUpdateJob.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Actions/Proxy/InstallProxy.php b/app/Actions/Proxy/InstallProxy.php index 67bfb1205..562523aa7 100644 --- a/app/Actions/Proxy/InstallProxy.php +++ b/app/Actions/Proxy/InstallProxy.php @@ -55,7 +55,7 @@ public function __invoke(Server $server): Activity "echo 'Starting proxy...'", 'docker compose up -d --remove-orphans', "echo 'Proxy installed successfully...'" - ], $server, ActivityTypes::INLINE->value); + ], $server); return $activity; } diff --git a/app/Actions/Server/InstallDocker.php b/app/Actions/Server/InstallDocker.php index 69aae2898..77471c07e 100644 --- a/app/Actions/Server/InstallDocker.php +++ b/app/Actions/Server/InstallDocker.php @@ -17,7 +17,7 @@ public function __invoke(Server $server) "echo '{$config}' | base64 -d > /etc/docker/daemon.json", "echo Restarting Docker...", "systemctl restart docker" - ], $server, ActivityTypes::INLINE->value); + ], $server); return $activity; } diff --git a/app/Http/Livewire/RunCommand.php b/app/Http/Livewire/RunCommand.php index aca729720..474e91cdc 100755 --- a/app/Http/Livewire/RunCommand.php +++ b/app/Http/Livewire/RunCommand.php @@ -26,7 +26,7 @@ public function runCommand() { try { $this->validate(); - $activity = remote_process([$this->command], Server::where('uuid', $this->server)->first(), ActivityTypes::INLINE->value); + $activity = remote_process([$this->command], Server::where('uuid', $this->server)->first()); $this->emit('newMonitorActivity', $activity->id); } catch (\Exception $e) { return general_error_handler($e); diff --git a/app/Http/Livewire/Settings/Form.php b/app/Http/Livewire/Settings/Form.php index 4279a7a29..b04084f44 100644 --- a/app/Http/Livewire/Settings/Form.php +++ b/app/Http/Livewire/Settings/Form.php @@ -60,7 +60,7 @@ public function submit() if (empty($this->settings->fqdn)) { remote_process([ "rm -f $dynamic_config_path/coolify.yaml", - ], $server, ActivityTypes::INLINE->value); + ], $server); } else { $url = Url::fromString($this->settings->fqdn); $host = $url->getHost(); @@ -106,7 +106,7 @@ public function submit() remote_process([ "mkdir -p $dynamic_config_path", "echo '$base64' | base64 -d > $dynamic_config_path/coolify.yaml", - ], $server, ActivityTypes::INLINE->value); + ], $server); } } } diff --git a/app/Jobs/InstanceAutoUpdateJob.php b/app/Jobs/InstanceAutoUpdateJob.php index ecba1d3c2..757e90f6d 100644 --- a/app/Jobs/InstanceAutoUpdateJob.php +++ b/app/Jobs/InstanceAutoUpdateJob.php @@ -71,7 +71,7 @@ public function handle(): void remote_process([ "bash /data/coolify/source/upgrade.sh $this->latest_version" - ], $this->server, ActivityTypes::INLINE->value); + ], $this->server); } } catch (\Exception $e) { Log::error($e->getMessage());