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
@@ -12,6 +12,7 @@ import {
UpdateEmployeeRolesParams,
UpdateEmployeeParams,
IncompleteCollaboratorView,
RemoveCollaboratorParams,
} from "../../Models/Employees/Employees.Interface";
import {
CreateEmployeeServiceParams,
@@ -162,4 +163,9 @@ export class EmployeesService {
await connect(`${process.env.DATABASE_CONNECTION}`);
await EmployeesList.update(data);
}
public async removeCollaborator(data: RemoveCollaboratorParams): Promise<void> {
await connect(`${process.env.DATABASE_CONNECTION}`);
await EmployeesList.removeCollaboratorFromCompany(data);
}
}