refactor(admin): remove unused 'where' option in system module
- Remove unnecessary 'where' option from various models in system module - Simplify query methods by removing redundant 'where' calls - Affected models: Config, Node, SystemAdmin, SystemMenu, SystemNode
This commit is contained in:
@@ -30,7 +30,7 @@ class SystemAdmin extends TimeModel
|
||||
|
||||
public function getAuthList(): array
|
||||
{
|
||||
return (new SystemAuth())->removeOption('where')->where('status', 1)->column('title', 'id');
|
||||
return (new SystemAuth())->removeOption()->where('status', 1)->column('title', 'id');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user