mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Add some TODO's, refactor some code.
This commit is contained in:
@@ -63,6 +63,9 @@ class SetBudget implements ActionInterface
|
||||
$repository->setUser($journal->user);
|
||||
$search = $this->action->action_value;
|
||||
$budgets = $repository->getActiveBudgets();
|
||||
|
||||
// TODO no longer need to loop like this
|
||||
|
||||
$budget = $budgets->filter(
|
||||
static function (Budget $current) use ($search) {
|
||||
return $current->name === $search;
|
||||
|
Reference in New Issue
Block a user