This commit is contained in:
David Bomba 2022-04-30 11:16:59 +10:00
parent e3640182fe
commit fd7ff4d285
2 changed files with 0 additions and 40 deletions

View File

@ -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;
// }
}

View File

@ -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);