RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/livechat/server/business-hour/Single.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function onNewAgentCreated has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    async onNewAgentCreated(agentId: string): Promise<void> {
        const defaultBusinessHour = await LivechatBusinessHours.findOneDefaultBusinessHour();
        if (!defaultBusinessHour) {
            businessHourLogger.debug('No default business hour found for agentId', {
                agentId,
Severity: Minor
Found in apps/meteor/app/livechat/server/business-hour/Single.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status