Correção para não instanciar o redis

pull/21/head
adriano 2023-01-06 07:08:40 -03:00
parent 37ab4b9564
commit 8059781c92
1 changed files with 37 additions and 33 deletions

View File

@ -7,7 +7,11 @@ import ListTicketServiceCache from "../services/TicketServices/ListTicketService
import { escapeCharCache } from './ContactsCache'
const redis = new Redis();
let redis: any = null
if (process.env.CACHE) {
redis = new Redis();
}
const redisConn = async () => {