RocketChat/Rocket.Chat

View on GitHub
apps/meteor/ee/server/models/raw/Users.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function getUnavailableAgents has 74 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    getUnavailableAgents(departmentId: string, customFilter: { [k: string]: any }[]): Promise<AgentMetadata[]> {
        // if department is provided, remove the agents that are not from the selected department
        const departmentFilter = departmentId
            ? [
                    {
Severity: Major
Found in apps/meteor/ee/server/models/raw/Users.ts - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status