An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: only run cloud clean on cloud + remove root team
Andras Bacsaibe633f056087
diff --git a/app/Console/Commands/CloudCleanupSubscriptions.php b/app/Console/Commands/CloudCleanupSubscriptions.phpindex 0ef775dda0..1d9dc5d74c 100644--- a/app/Console/Commands/CloudCleanupSubscriptions.php+++ b/app/Console/Commands/CloudCleanupSubscriptions.php@@ -14,13 +14,22 @@ class CloudCleanupSubs extends Commandpublic function handle(){try {+ if (! isCloud()) {+ $this->error('This command can only be run on cloud');++ return;+ }ray()->clearAll();$this->info('Cleaning up subcriptions teams');$stripe = new \Stripe\StripeClient(config('subscription.stripe_api_key'));- $teams = Team::all()->sortBy('id');+ $teams = Team::all()->filter(function ($team) {+ return $team->id !== 0;+ })->sortBy('id');foreach ($teams as $team) {- $this->info("Checking team {$team->id}");+ if ($team) {+ $this->info("Checking team {$team->id}");+ }if (! data_get($team, 'subscription')) {$this->disableServers($team);