operador mejorado antes de meterme con auth

This commit is contained in:
2022-10-15 22:24:22 -05:00
parent cc0f3e8773
commit 132d1b18d9
9 changed files with 79 additions and 75 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ export class JwtStrategyService extends PassportStrategy(Strategy) {
.then((usuario) => (user.usuario = usuario));
else if (payload.id_operador)
await this.operadorService
.findById(payload.id_operador)
.findInfoOperadorById(payload.id_operador)
.then(async (operador) => {
if (!operador.activo)
throw new ForbiddenException('Esta cuenta esta desactivada.');