Skip to content

Firefly III: a personal finances manager

Add a todo [skip ci]

James Coleefc6b0e45a1a
diff --git a/app/Repositories/Account/AccountRepository.php b/app/Repositories/Account/AccountRepository.php
index 33b97f1eb7..9967f08b79 100644
--- a/app/Repositories/Account/AccountRepository.php
+++ b/app/Repositories/Account/AccountRepository.php
@@ -129,6 +129,8 @@ class AccountRepository implements AccountRepositoryInterface
$query->whereIn('account_types.type', $types);
}
+ // TODO a loop like this is no longer necessary
+
$accounts = $query->get(['accounts.*']);
/** @var Account $account */
foreach ($accounts as $account) {