From a7d4f99e69473e58b2f4ce3f28e8866e9c6e891a Mon Sep 17 00:00:00 2001 From: adriano Date: Wed, 26 Jul 2023 09:59:24 -0300 Subject: [PATCH] ajustes slm --- backend/src/controllers/HitController.ts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/backend/src/controllers/HitController.ts b/backend/src/controllers/HitController.ts index 6a9dc81..3cb04c8 100644 --- a/backend/src/controllers/HitController.ts +++ b/backend/src/controllers/HitController.ts @@ -39,12 +39,12 @@ export const hit = async (req: Request, res: Response): Promise => { // cod_web, // } = req.body as IndexQuery; - console.log("req.boy: ", req.body); - console.log("req.body['cod_web']: ", req.body["cod_web"]); - console.log("req.body['action']: ", req.body["action"]); - console.log("req.body['phone']: ", req.body["phone"]); - console.log("req.body['name']: ", req.body["name"]); - console.log("req.body['mensagem']: ", req.body["mensagem"]); + console.log("==============> req.body: ", req.body); + // console.log("req.body['cod_web']: ", req.body["cod_web"]); + // console.log("req.body['action']: ", req.body["action"]); + // console.log("req.body['phone']: ", req.body["phone"]); + // console.log("req.body['name']: ", req.body["name"]); + // console.log("req.body['mensagem']: ", req.body["mensagem"]); if (req.headers["auth"] === "0424bd59b807674191e7d77572075f33") { let phone = req.body["phone"]; @@ -94,9 +94,7 @@ export const hit = async (req: Request, res: Response): Promise => { let response: any = ""; - if ( - ["atdabriu", "atdatualizou", "atdreabriu"].includes(req.body["action"]) - ) { + if (["atdabriu", "atdatualizou"].includes(req.body["action"])) { response = await hitPortalMonitoring({ "params[n_chamado_web]": req.body["n_chamado_web"], method: "omnihit.consultachamado"