Commit 816a252980f124b8dd62fbe1f75660ec0ef041c4

Authored by Eric Fernandez
1 parent 36b3418ff3
Exists in master

json

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
rutas/comprobantes.js
... ... @@ -67,11 +67,11 @@ router.post('/comprobante', function(req, res) {
67 67 .del()
68 68 ])
69 69 .then(() => {
70   - res.status(200).send('Comprobante guardado con éxito');
  70 + res.status(200).send({data: 'Comprobante guardado con éxito'});
71 71 })
72 72 .catch(err => {
73 73 console.log(err);
74   - console.log('error al guardar algo ruta comprobantes');
  74 + console.log({data: 'error al guardar algo ruta comprobantes'});
75 75 res.status(500).send(err)
76 76 });
77 77