From 4b0a45adcc3c421c4c512284f91c21f6f8d70ee0 Mon Sep 17 00:00:00 2001 From: Matthieu Haineault Date: Mon, 15 Dec 2025 09:26:17 -0500 Subject: [PATCH] fix(access): fix module access update --- .../employees/services/employees-update.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/identity-and-account/employees/services/employees-update.service.ts b/src/identity-and-account/employees/services/employees-update.service.ts index 9cdaa69..8c01fca 100644 --- a/src/identity-and-account/employees/services/employees-update.service.ts +++ b/src/identity-and-account/employees/services/employees-update.service.ts @@ -8,7 +8,7 @@ import { Result } from "src/common/errors/result-error.factory"; import { toCompanyCodeFromString } from "src/identity-and-account/employees/employee.utils"; import { EmployeeDetailedDto } from "src/identity-and-account/employees/employee-detailed.dto"; -import { toBooleanFromKeys } from "src/common/utils/boolean-utils"; +import { toBooleanFromString } from "src/identity-and-account/employees/services/employees-get.service"; @Injectable() export class EmployeesUpdateService { @@ -23,7 +23,7 @@ export class EmployeesUpdateService { const company_code = toCompanyCodeFromString(dto.company_name); const supervisor_id = await this.toIdFromFullName(dto.supervisor_full_name); - const normalized_access = toBooleanFromKeys(dto.user_module_access); + const normalized_access = toBooleanFromString(dto.user_module_access); const last_work_day = dto.last_work_day ? toDateFromString(dto.last_work_day) : null; await this.prisma.$transaction(async (tx) => {