From 67fbaaef8871a8d2c08147584742b0f72f8face5 Mon Sep 17 00:00:00 2001 From: adriano Date: Mon, 10 Apr 2023 18:53:03 -0300 Subject: [PATCH] =?UTF-8?q?Adi=C3=A7=C3=A3o=20de=20chave=20no=20.env=20par?= =?UTF-8?q?a=20armazenar=20o=20ip=20do=20backend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/controllers/WhatsAppController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/controllers/WhatsAppController.ts b/backend/src/controllers/WhatsAppController.ts index 550547c..72fa05c 100644 --- a/backend/src/controllers/WhatsAppController.ts +++ b/backend/src/controllers/WhatsAppController.ts @@ -92,7 +92,7 @@ export const store = async (req: Request, res: Response): Promise => { "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();