diff --git a/rutas/comprobantes.js b/rutas/comprobantes.js index 19ead07..a8fc081 100644 --- a/rutas/comprobantes.js +++ b/rutas/comprobantes.js @@ -67,6 +67,10 @@ router.post('/comprobante', function(req, res) { .then(() => { res.status(200).send('Comprobante guardado con éxito'); }) - .catch(err => res.status(500).send(err)); + .catch(err => { + console.log(err); + console.log('error al guardar algo ruta comprobantes'); + res.status(500).send(err) + }); }); diff --git a/webSocketServer/index.js b/webSocketServer/index.js index 5162a4a..b9cd137 100644 --- a/webSocketServer/index.js +++ b/webSocketServer/index.js @@ -93,7 +93,7 @@ module.exports = function() { var enviar = { action: 'comprobante', - req: cuerpo + req: cuerpo.body }; console.log(`enviando comprobante a cliente`)