mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 23:50:09 +00:00
All kinds of code cleanup, mostly to get some mess detection fixed.
This commit is contained in:
@@ -80,22 +80,6 @@ class HomeController extends BaseController
|
||||
return Redirect::back();
|
||||
}
|
||||
|
||||
public function repair()
|
||||
{
|
||||
BudgetLimit::get()->each(
|
||||
function (BudgetLimit $bl) {
|
||||
$component = Component::find($bl->component_id);
|
||||
if ($component) {
|
||||
$budget = Budget::whereName($component->name)->whereUserId($component->user_id)->first();
|
||||
if ($budget) {
|
||||
$bl->budget_id = $budget->id;
|
||||
$bl->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Http\RedirectResponse
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user