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`);