Commit 27486abd68204ca34499394b2bc3131f5366b447
Exists in
master
Merge branch 'master' into 'master'
Master(efernandez) See merge request !8
Showing
1 changed file
Show diff stats
index.js
| ... | ... | @@ -24,11 +24,13 @@ client.on('open', function open() { |
| 24 | 24 | break; |
| 25 | 25 | |
| 26 | 26 | case 'comprobante' : |
| 27 | - | |
| 27 | + console.log('recibiendo comprobante') | |
| 28 | 28 | data.guardarComprobante(message.req).then(() => { |
| 29 | - client.send('ok'); | |
| 30 | - }).catch(err => { | |
| 31 | - client.send('bad'); | |
| 29 | + console.log('se guardó'); | |
| 30 | + client.send(JSON.stringify('ok')); | |
| 31 | + }).catch(() => { | |
| 32 | + console.log('no se guardó'); | |
| 33 | + client.send(JSON.stringify('bad')); | |
| 32 | 34 | }); |
| 33 | 35 | |
| 34 | 36 | break; |