Adição de chave no .env para armazenar o ip do backend

pull/21/head
adriano 2023-04-10 18:53:03 -03:00
parent c1a739395b
commit 67fbaaef88
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ export const store = async (req: Request, res: Response): Promise<Response> => {
"app_name": process.env.APP_NAME,
"whatsappId": whatsapp.id,
"number": getNumberFromName(name),
"client_url": `${process.env.BACKEND_URL}:${process.env.PORT}`
"client_url": `${process.env.BACKEND_URL_RAW}:${process.env.PORT}`
})
// StartWhatsAppSession(whatsapp);
@ -147,7 +147,7 @@ export const update = async (
"app_name": process.env.APP_NAME,
"whatsappId": whatsapp.id,
"number": getNumberFromName(whatsapp.name),
"client_url": `${process.env.BACKEND_URL}:${process.env.PORT}`
"client_url": `${process.env.BACKEND_URL_RAW}:${process.env.PORT}`
})
const io = getIO();