mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Clean up
This commit is contained in:
parent
e3640182fe
commit
fd7ff4d285
@ -156,45 +156,6 @@ class CreateAccount
|
|||||||
return $sp794f3f;
|
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;
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -132,7 +132,6 @@ class StartMigration implements ShouldQueue
|
|||||||
$this->company->update_products = $update_product_flag;
|
$this->company->update_products = $update_product_flag;
|
||||||
$this->company->save();
|
$this->company->save();
|
||||||
|
|
||||||
|
|
||||||
if(Ninja::isHosted())
|
if(Ninja::isHosted())
|
||||||
app('sentry')->captureException($e);
|
app('sentry')->captureException($e);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user