feat: implement collaborator reactivation logic, add access denied handling, and improve metric filtering

This commit is contained in:
2026-07-19 18:56:39 -03:00
parent af6c87acb6
commit 74d6ee6706
27 changed files with 3148 additions and 37 deletions
+2 -1
View File
@@ -40,7 +40,8 @@ class MetricsManager implements IMetricsManager {
for (const org of organizations) {
const employees = await EmployeesList.employees.find({
companyId: String(org.id),
});
removed: { $ne: true },
} as any);
employeesLength += employees.length;
const services = await ServiceList.services.find({