Throw some exceptions so I can spot deprecated code.

This commit is contained in:
James Cole
2023-09-21 16:09:40 +02:00
parent 0b220f3288
commit 62bba0d33b
22 changed files with 51 additions and 42 deletions

View File

@@ -462,11 +462,12 @@ class RuleGroupRepository implements RuleGroupRepositoryInterface
{
$newRuleGroup = new RuleGroup(
[
'user_id' => $this->user->id,
'title' => $data['title'],
'description' => $data['description'],
'order' => 31337,
'active' => array_key_exists('active', $data) ? $data['active'] : true,
'user_id' => $this->user->id,
'user_group_id' => $this->user->user_group_id,
'title' => $data['title'],
'description' => $data['description'],
'order' => 31337,
'active' => array_key_exists('active', $data) ? $data['active'] : true,
]
);
$newRuleGroup->save();