Commit 1b1d8a800024c696a8a7d94b36ceeeb4c80a30b2

Authored by Eric Fernandez
1 parent 638c208863
Exists in master

cambios2

Showing 1 changed file with 6 additions and 4 deletions   Show diff stats
... ... @@ -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;