pases 5 ticket updates
This commit is contained in:
@@ -30,8 +30,8 @@ final class AgentAssignmentService
|
||||
);
|
||||
|
||||
if ($categoryId !== null) {
|
||||
$category = Category::query()->find($categoryId);
|
||||
$agentIds = $category?->agents()->pluck('users.id')->all() ?? [];
|
||||
$category = Category::query()->with('agents:id')->find($categoryId);
|
||||
$agentIds = $category?->agents->pluck('id')->all() ?? [];
|
||||
|
||||
if ($agentIds !== []) {
|
||||
$query->whereIn('id', $agentIds);
|
||||
|
||||
Reference in New Issue
Block a user