diff --git a/app/Jobs/Account/CreateAccount.php b/app/Jobs/Account/CreateAccount.php index e74b56aa5f28..59560b803318 100644 --- a/app/Jobs/Account/CreateAccount.php +++ b/app/Jobs/Account/CreateAccount.php @@ -156,45 +156,6 @@ class CreateAccount return $sp794f3f; } - // private function processSettings($settings) - // { - // if(Ninja::isHosted() && Cache::get('currencies')) - // { - - // $currency = Cache::get('currencies')->filter(function ($item) use ($currency_code) { - // return strtolower($item->code) == $currency_code; - // })->first(); - - // if ($currency) { - // $settings->currency_id = (string)$currency->id; - // } - - // $country = Cache::get('countries')->filter(function ($item) use ($country_code) { - // return strtolower($item->iso_3166_2) == $country_code || strtolower($item->iso_3166_3) == $country_code; - // })->first(); - - // if ($country) { - // $settings->country_id = (string)$country->id; - // } - - // $language = Cache::get('languages')->filter(function ($item) use ($currency_code) { - // return strtolower($item->locale) == $currency_code; - // })->first(); - - // if ($language) { - // $settings->language_id = (string)$language->id; - // } - - // if($timezone) { - // $settings->timezone_id = (string)$timezone->id; - // } - - // return $settings; - // } - - - // return $settings; - // } } diff --git a/app/Jobs/Util/StartMigration.php b/app/Jobs/Util/StartMigration.php index 94716c210a34..0368b37d98fd 100644 --- a/app/Jobs/Util/StartMigration.php +++ b/app/Jobs/Util/StartMigration.php @@ -132,7 +132,6 @@ class StartMigration implements ShouldQueue $this->company->update_products = $update_product_flag; $this->company->save(); - if(Ninja::isHosted()) app('sentry')->captureException($e);