Adição de chave no .env para armazenar o ip do backend
parent
c1a739395b
commit
67fbaaef88
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue