From fc8a5e47a0e44ffcab77e765c2907c6975581ab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Fri, 22 May 2026 13:40:31 -0300 Subject: [PATCH] fix: send Fone_Cliente from backend to frontend API response --- backend/index.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/backend/index.js b/backend/index.js index 48a25e9..57d5c49 100644 --- a/backend/index.js +++ b/backend/index.js @@ -90,7 +90,8 @@ const formatRow = (row) => ({ Quantidade: row.quantidade, Valor_Unitario: parseFloat(row.valor_unitario), Recebido_Em: row.created_at, - ID_Pedido: row.pedido_id + ID_Pedido: row.pedido_id, + Fone_Cliente: row.cliente_fone }); // GET data (for the frontend) @@ -177,11 +178,6 @@ app.post('/api/data', authenticateAPIKey, async (req, res) => { })(); }); -app.listen(PORT, '0.0.0.0', () => { - console.log(`Nexstar Backend running at http://localhost:${PORT}`); - console.log(`Endpoint for n8n: POST http://localhost:${PORT}/api/data`); -});; - app.listen(PORT, '0.0.0.0', () => { console.log(`Nexstar Backend running at http://localhost:${PORT}`); console.log(`Endpoint for n8n: POST http://localhost:${PORT}/api/data`);