diff --git a/app/Repositories/RuleGroup/RuleGroupRepository.php b/app/Repositories/RuleGroup/RuleGroupRepository.php index 5655ab11f0..eb1d3961e1 100644 --- a/app/Repositories/RuleGroup/RuleGroupRepository.php +++ b/app/Repositories/RuleGroup/RuleGroupRepository.php @@ -153,7 +153,8 @@ class RuleGroupRepository implements RuleGroupRepositoryInterface public function destroyAll(): void { - Log::channel('audit')->info('Delete all rule groups through destroyAll'); $groups = $this->get(); + Log::channel('audit')->info('Delete all rule groups through destroyAll'); + $groups = $this->get(); /** @var RuleGroup $group */ foreach ($groups as $group) {