feat: adiciona endpoint placa-8122 e remove newrelic/pm2
Simplifica start:prod e ajusta consultas de ofertas para 10x (codplpagmax=42), com melhorias de sanitização e imports.
This commit is contained in:
@@ -3,6 +3,7 @@ import { RedisClientToken } from '../../core/configs/cache/redis-client.adapter.
|
||||
import { IRedisClient } from '../../core/configs/cache/IRedisClient';
|
||||
import { JwtService } from '@nestjs/jwt';
|
||||
import { JwtPayload } from '../models/jwt-payload.model';
|
||||
import * as crypto from 'crypto';
|
||||
|
||||
@Injectable()
|
||||
export class TokenBlacklistService {
|
||||
@@ -64,7 +65,6 @@ export class TokenBlacklistService {
|
||||
}
|
||||
|
||||
private hashToken(token: string): string {
|
||||
const crypto = require('crypto');
|
||||
return crypto
|
||||
.createHash('sha256')
|
||||
.update(token)
|
||||
|
||||
Reference in New Issue
Block a user