diff --git a/src/services/users/transformations.ts b/src/services/users/transformations.ts index e296df9..bc2bd05 100644 --- a/src/services/users/transformations.ts +++ b/src/services/users/transformations.ts @@ -6,6 +6,8 @@ const transformRoleById = (roleId: any): UserRole => { return UserRole.Admin; case 2: return UserRole.User; + case 3: + return UserRole.NoAccess; default: return UserRole.NoAccess; } @@ -17,6 +19,8 @@ const transformRoleIdByRole = (role: UserRole | null): number | null => { return 1; case UserRole.User: return 2; + case UserRole.NoAccess: + return 3; default: return null; }