apps/meteor/ee/app/livechat-enterprise/server/lib/LivechatEnterprise.ts
Function saveUnit
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async saveUnit(
_id: string | null,
unitData: Omit<IOmnichannelBusinessUnit, '_id'>,
unitMonitors: { monitorId: string; username: string },
unitDepartments: { departmentId: string }[],