modulo en token

This commit is contained in:
2022-09-20 12:54:04 -05:00
parent fd0dc81a2c
commit f9187068b8
2 changed files with 18 additions and 7 deletions
+2
View File
@@ -53,6 +53,8 @@ export class AuthService {
throw new UnauthorizedException(
'Esta cuenta se encuentra desactivada.',
);
if (data.operador.tipoUsuario.id_tipo_usuario === 4)
data.operador.id_modulo = modulo.id_modulo;
return { token: this.jwtService.sign(data.operador) };
});
}