From 66e0777b98cfd3717f8173decf54dde6e17665a5 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 29 Jan 2023 08:37:34 +1100 Subject: [PATCH] Clean up --- app/Console/Commands/HostedUsers.php | 9 +++ app/Console/Commands/MobileLocalization.php | 9 +++ app/Console/Commands/ParallelCheckData.php | 61 --------------------- app/Console/Commands/S3Cleanup.php | 9 +++ app/Console/Commands/SubdomainFill.php | 56 ------------------- 5 files changed, 27 insertions(+), 117 deletions(-) delete mode 100644 app/Console/Commands/ParallelCheckData.php delete mode 100644 app/Console/Commands/SubdomainFill.php diff --git a/app/Console/Commands/HostedUsers.php b/app/Console/Commands/HostedUsers.php index 63a1b94e7e35..703e80f2440c 100644 --- a/app/Console/Commands/HostedUsers.php +++ b/app/Console/Commands/HostedUsers.php @@ -1,4 +1,13 @@ each(function ($company) use ($hash) { - CheckCompanyData::dispatch($company, $hash)->onQueue('checkdata'); - }); - } -} diff --git a/app/Console/Commands/S3Cleanup.php b/app/Console/Commands/S3Cleanup.php index 7074589de8ba..15006e7453d0 100644 --- a/app/Console/Commands/S3Cleanup.php +++ b/app/Console/Commands/S3Cleanup.php @@ -1,4 +1,13 @@ whereNull('subdomain')->orWhere('subdomain', '')->get(); - $c2 = Company::on('db-ninja-02')->whereNull('subdomain')->orWhere('subdomain', '')->get(); - - $c1->each(function ($company) { - $company->subdomain = MultiDB::randomSubdomainGenerator(); - $company->save(); - }); - - $c2->each(function ($company) { - $company->subdomain = MultiDB::randomSubdomainGenerator(); - $company->save(); - }); - } -}