Only get active piggy banks.

This commit is contained in:
James Cole 2015-12-02 08:25:38 +01:00
parent de634da513
commit 7b8c86e1e3

View File

@ -234,7 +234,7 @@ class AccountRepository implements AccountRepositoryInterface
$ids = array_unique($ids);
if (count($ids) > 0) {
$accounts = Auth::user()->accounts()->whereIn('id', $ids)->get();
$accounts = Auth::user()->accounts()->whereIn('id', $ids)->where('accounts.active', 1)->get();
}
bcscale(2);