mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 01:42:19 +00:00
Add imports for facades
This commit is contained in:
@@ -29,6 +29,7 @@ use FireflyIII\Models\PiggyBank;
|
||||
use FireflyIII\Support\Repositories\UserGroup\UserGroupInterface;
|
||||
use FireflyIII\Support\Repositories\UserGroup\UserGroupTrait;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
/**
|
||||
* Class ObjectGroupRepository
|
||||
@@ -64,7 +65,7 @@ class ObjectGroupRepository implements ObjectGroupRepositoryInterface, UserGroup
|
||||
|
||||
/** @var ObjectGroup $group */
|
||||
foreach ($all as $group) {
|
||||
$count = \DB::table('object_groupables')->where('object_groupables.object_group_id', $group->id)->count();
|
||||
$count = DB::table('object_groupables')->where('object_groupables.object_group_id', $group->id)->count();
|
||||
if (0 === $count) {
|
||||
$group->delete();
|
||||
}
|
||||
|
Reference in New Issue
Block a user