apps/meteor/app/livechat/server/business-hour/Single.ts
Function onNewAgentCreated
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async onNewAgentCreated(agentId: string): Promise<void> {
const defaultBusinessHour = await LivechatBusinessHours.findOneDefaultBusinessHour();
if (!defaultBusinessHour) {
businessHourLogger.debug('No default business hour found for agentId', {
agentId,