fix(module_access): added Modules typing to the return value of the toKeysFromBoolean function

This commit is contained in:
Matthieu Haineault 2026-03-16 10:37:01 -04:00
parent 517598fec6
commit fd120f9017

View File

@ -27,7 +27,7 @@ export abstract class AbstractUserService {
}
let module_access: Modules[] = [];
if (user.user_module_access !== null) module_access = toKeysFromBoolean(user.user_module_access);
if (user.user_module_access !== null) module_access = toKeysFromBoolean<Modules>(user.user_module_access);
const clean_user = {
first_name: user.first_name,